summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2016-04-28 18:19:15 +0900
committerJunio C Hamano <gitster@pobox.com>2016-04-28 10:19:27 -0700
commit044278a3a869751554b8bbf2c943ab017e31a94e (patch)
tree81e49e29d0accbb0d816a979069ae65e1911360f
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-mh/connect-leak.tar.gz
git_connect(): fix memory leak with CONNECT_DIAG_URLmh/connect-leak
Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/connect.c b/connect.c
index 27a706f766..af0f546dd4 100644
--- a/connect.c
+++ b/connect.c
@@ -746,6 +746,7 @@ struct child_process *git_connect(int fd[2], const char *url,
free(hostandport);
free(path);
free(conn);
+ strbuf_release(&cmd);
return NULL;
}