[PATCH] Fix memory leak in git_connect with CONNECT_DIAG_URL

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix memory leak in git_connect with CONNECT_DIAG_URL

Mike Hommey-3
Signed-off-by: Mike Hommey <[hidden email]>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html