Skip to content

Commit

Permalink
http.c: free preq when aborting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed Aug 10, 2009
1 parent f402a7b commit 5ae9ebf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ struct http_pack_request *new_http_pack_request(

abort:
free(filename);
free(preq);
return NULL;
}

Expand Down

0 comments on commit 5ae9ebf

Please sign in to comment.