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>
Tay Ray Chuan committed
Aug 10, 2009 at 23:55 UTC
5ae9ebfd582a6e8c2d6fd3d27b7df6cb12a98839
1 file changed
+1
http.c
+1
@@ -1059,6 +1059,7 @@ struct http_pack_request *new_http_pack_request(
1059
1060
abort:
1061
free(filename);
1062
+ free(preq);
1063
return NULL;
1064
}
1065