diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2009-06-06 16:43:36 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-06 10:56:27 -0700 |
commit | 20cfb3aa710d302829a776d7fbad2b89f71f15b6 (patch) | |
tree | b9e4153f98f61b91f7b2b3f86611bdc2fdaa63df /symlinks.c | |
parent | 48188c259a7e6c87c20121933287b8c8ca721e3a (diff) | |
download | git-20cfb3aa710d302829a776d7fbad2b89f71f15b6.tar.gz git-20cfb3aa710d302829a776d7fbad2b89f71f15b6.tar.xz |
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 'symlinks.c')
0 files changed, 0 insertions, 0 deletions