summaryrefslogtreecommitdiff
path: root/builtin-verify-tag.c
diff options
context:
space:
mode:
authorCarlos Rica <jasampler@gmail.com>2007-07-21 12:13:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-21 23:59:33 (GMT)
commite317cfafd247b279055e9ee64a6a982043bd06e7 (patch)
tree56677e8697cfa075b22f5b48b426841a9048334a /builtin-verify-tag.c
parent4d87b9c5db2590f7616fedfc0a538fc78f528e14 (diff)
downloadgit-e317cfafd247b279055e9ee64a6a982043bd06e7.zip
git-e317cfafd247b279055e9ee64a6a982043bd06e7.tar.gz
git-e317cfafd247b279055e9ee64a6a982043bd06e7.tar.bz2
builtin-tag.c: Fix two memory leaks and minor notation changes.
A repeated call to read_sha1_file was not freing memory when the buffer was allocated but returned size was zero. Also, now the program does not allow many -F or -m options, which was a bug too because it was not freing the memory allocated for any previous -F or -m options. Tests are provided for ensuring that only one option -F or -m is given. Also, another test is shipped here, to check that "git tag" fails when a non-existing file is passed to the -F option, something that git-tag.sh allowed creating the tag with an empty message. Signed-off-by: Carlos Rica <jasampler@gmail.com> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-verify-tag.c')
0 files changed, 0 insertions, 0 deletions