summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Tay Ray Chuan <rctay89@gmail.com>2009-08-10 23:55:48 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-08-10 13:25:25 -0700
commit5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839 (patch)
treee5fc195acb2c63bfc4d855e78df960cfa13bf08b
parentMerge branch 'master' of git://git.bogomips.org/git-svn (diff)
downloadtgif-5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839.tar.xz
http.c: free preq when aborting
Free preq in new_http_pack_request when aborting. preq was allocated before jumping to the 'abort' label so this is safe. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index a2720d576d..cfe32f5f0e 100644
--- a/http.c
+++ b/http.c
@@ -1059,6 +1059,7 @@ struct http_pack_request *new_http_pack_request(
abort:
free(filename);
+ free(preq);
return NULL;
}