summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorGrégoire Barbier <gb@gbarbier.org>2007-12-30 17:15:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-30 20:24:13 (GMT)
commitd6ed263fc7458e97ad032837ffdab6013d039543 (patch)
tree4ef436f80479ba521baeb1575e98abd760f803da /http-push.c
parent441ed4131b2d735fea08e4f6277c12b13acebd53 (diff)
downloadgit-d6ed263fc7458e97ad032837ffdab6013d039543.zip
git-d6ed263fc7458e97ad032837ffdab6013d039543.tar.gz
git-d6ed263fc7458e97ad032837ffdab6013d039543.tar.bz2
Fix double-free() in http-push.c:remote_exists()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/http-push.c b/http-push.c
index 64be904..55d0c94 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");
}