Commit 5ae9ebfd authored by Ray's avatar Ray Committed by Junio C Hamano

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: Ray's avatarTay Ray Chuan <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent f402a7b1
......@@ -1059,6 +1059,7 @@ struct http_pack_request *new_http_pack_request(
abort:
free(filename);
free(preq);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment