From 5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Mon, 10 Aug 2009 23:55:48 +0800 Subject: 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 a2720d5..cfe32f5 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; } -- cgit v0.10.2-6-g49f6