From: Tay Ray Chuan Date: Mon, 10 Aug 2009 15:55:48 +0000 (+0800) Subject: http.c: free preq when aborting X-Git-Tag: v1.6.5-rc0~89 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/http.c b/http.c index a2720d576..cfe32f5f0 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; }