diff options
author | Mike Hommey <mh@glandium.org> | 2016-04-28 18:19:15 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-28 10:19:27 -0700 |
commit | 044278a3a869751554b8bbf2c943ab017e31a94e (patch) | |
tree | 81e49e29d0accbb0d816a979069ae65e1911360f | |
parent | 765428699a5381f113d19974720bc91b5bfeaf1d (diff) | |
download | git-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |