1
0
mirror of https://github.com/git/git synced 2024-07-02 15:48:44 +00:00

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>
This commit is contained in:
Tay Ray Chuan 2009-08-10 23:55:48 +08:00 committed by Junio C Hamano
parent f402a7b172
commit 5ae9ebfd58

1
http.c
View File

@ -1059,6 +1059,7 @@ struct http_pack_request *new_http_pack_request(
abort:
free(filename);
free(preq);
return NULL;
}