Commit 0e39a8faf9082634e1d2ff91d5c944bd9cb5476b

Edward Thomson 2019-12-29T10:05:14

net: free the url's query component

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/net.c b/src/net.c
index 2e466b6..d42fce5 100644
--- a/src/net.c
+++ b/src/net.c
@@ -405,6 +405,7 @@ void git_net_url_dispose(git_net_url *url)
 	git__free(url->host); url->host = NULL;
 	git__free(url->port); url->port = NULL;
 	git__free(url->path); url->path = NULL;
+	git__free(url->query); url->query = NULL;
 	git__free(url->username); url->username = NULL;
 	git__free(url->password); url->password = NULL;
 }