summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2009-08-10 23:55:48 +0800
committerJunio C Hamano <gitster@pobox.com>2009-08-10 13:25:25 -0700
commit5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839 (patch)
treee5fc195acb2c63bfc4d855e78df960cfa13bf08b /http.c
parentf402a7b17202c1eb2677a432673e4d607b5f0928 (diff)
downloadgit-5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839.tar.gz
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>
Diffstat (limited to 'http.c')
-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;
}