git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix memory leak in git_connect with CONNECT_DIAG_URL
@ 2016-04-28  9:19 Mike Hommey
  0 siblings, 0 replies; only message in thread
From: Mike Hommey @ 2016-04-28  9:19 UTC (permalink / raw)
  To: git; +Cc: gitster

Signed-off-by: Mike Hommey <mh@glandium.org>
---
 connect.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/connect.c b/connect.c
index c53f3f1..dccf673 100644
--- a/connect.c
+++ b/connect.c
@@ -755,6 +755,7 @@ struct child_process *git_connect(int fd[2], const char *url,
 				free(hostandport);
 				free(path);
 				free(conn);
+				strbuf_release(&cmd);
 				return NULL;
 			}
 
-- 
2.8.1.5.g18c8a48

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-28  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28  9:19 [PATCH] Fix memory leak in git_connect with CONNECT_DIAG_URL Mike Hommey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).