Skip to content

Commit

Permalink
http: release the memory of a http pack request as well
Browse files Browse the repository at this point in the history
The cleanup function is used in 4 places now and it's always safe to
free up the memory as well.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Mar 24, 2015
1 parent 915e44c commit 826aed5
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 @@ -1462,6 +1462,7 @@ void release_http_pack_request(struct http_pack_request *preq)
}
preq->slot = NULL;
free(preq->url);
free(preq);
}

int finish_http_pack_request(struct http_pack_request *preq)
Expand Down

0 comments on commit 826aed5

Please sign in to comment.