summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2009-06-06 08:43:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-06 17:56:27 (GMT)
commit20cfb3aa710d302829a776d7fbad2b89f71f15b6 (patch)
treeb9e4153f98f61b91f7b2b3f86611bdc2fdaa63df /git-cvsserver.perl
parent48188c259a7e6c87c20121933287b8c8ca721e3a (diff)
downloadgit-20cfb3aa710d302829a776d7fbad2b89f71f15b6.zip
git-20cfb3aa710d302829a776d7fbad2b89f71f15b6.tar.gz
git-20cfb3aa710d302829a776d7fbad2b89f71f15b6.tar.bz2
http*: copy string returned by sha1_to_hex
In the fetch_index implementations in http-push.c and http-walker.c, the string returned by sha1_to_hex is assumed to stay immutable. This patch ensures that hex stays immutable by copying the string returned by sha1_to_hex (via xstrdup) and frees it subsequently. It also refactors free()'s and fclose()'s with labels. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsserver.perl')
0 files changed, 0 insertions, 0 deletions