[PATCH] http-push: fix double free()
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 17, 2008, 19:45 UTC
- Message-ID
- <alpine.LSU.1.00.0801171943360.5731@racer.site>
There was an extra free(url) in remote_exists() (both if clauses before that contain a free(url) already), which resulted in a crash on Windows.
Noticed by Nigel Magnay.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> ---
This fixes Issue 71 of msysGit, as far as I can tell.
http-push.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/http-push.c b/http-push.c index 64be904..a78e0a9 100644 --- a/http-push.c +++ b/http-push.c @@ -1991,7 +1991,6 @@ static int remote_exists(const char *path) fprintf(stderr, "Unable to start HEAD request\n"); } - free(url); return ret; }
-- 1.5.3.6.2304.gbc8e45-dirty