summaryrefslogtreecommitdiff
path: root/test-line-buffer.c
diff options
context:
space:
mode:
authorLibravatar Tay Ray Chuan <rctay89@gmail.com>2011-08-03 19:54:03 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-08-03 11:23:09 -0700
commitec99c9a89a65749093e16aed37d393f646597b31 (patch)
tree4b5457300e261960a65d5bb883db933aaa566249 /test-line-buffer.c
parenttest: skip clean-up when running under --immediate mode (diff)
downloadtgif-ec99c9a89a65749093e16aed37d393f646597b31.tar.xz
http.c: fix an invalid free()
Remove a free() on the static buffer returned by sha1_file_name(). While we're at it, replace xmalloc() calls on the structs http_(object|pack)_request with xcalloc() so that pointers in the structs get initialized to NULL. That way, free()'s are safe - for example, a free() on the url string member when aborting. This fixes an invalid free(). Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Helped-by: Jeff King peff@peff.net Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-line-buffer.c')
0 files changed, 0 insertions, 0 deletions