diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2009-08-10 23:55:48 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-10 13:25:25 -0700 |
commit | 5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839 (patch) | |
tree | e5fc195acb2c63bfc4d855e78df960cfa13bf08b /http.c | |
parent | f402a7b17202c1eb2677a432673e4d607b5f0928 (diff) | |
download | git-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1059,6 +1059,7 @@ struct http_pack_request *new_http_pack_request( abort: free(filename); + free(preq); return NULL; } |