From 5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Mon, 10 Aug 2009 23:55:48 +0800 Subject: [PATCH] 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 --- http.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2