From: Grégoire Barbier Date: Sun, 30 Dec 2007 17:15:51 +0000 (+0100) Subject: Fix double-free() in http-push.c:remote_exists() X-Git-Tag: v1.5.4-rc3~70 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d6ed263fc7458e97ad032837ffdab6013d039543;p=git.git Fix double-free() in http-push.c:remote_exists() Signed-off-by: Junio C Hamano --- diff --git a/http-push.c b/http-push.c index 64be90492..55d0c944a 100644 --- a/http-push.c +++ b/http-push.c @@ -1979,7 +1979,6 @@ static int remote_exists(const char *path) if (start_active_slot(slot)) { run_active_slot(slot); - free(url); if (results.http_code == 404) ret = 0; else if (results.curl_result == CURLE_OK) @@ -1987,7 +1986,6 @@ static int remote_exists(const char *path) else fprintf(stderr, "HEAD HTTP error %ld\n", results.http_code); } else { - free(url); fprintf(stderr, "Unable to start HEAD request\n"); }