aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/connect.c b/connect.c
index ce0e12142..6090211fe 100644
--- a/connect.c
+++ b/connect.c
@@ -739,6 +739,7 @@ struct child_process *git_connect(int fd[2], const char *url,
free(hostandport);
free(path);
+ free(conn);
return NULL;
} else {
ssh = getenv("GIT_SSH_COMMAND");