diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2017-09-27 15:27:32 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2017-09-27 15:27:32 +0200 |
commit | 406b47bf4086f09a6686db97099347f52291a4a7 (patch) | |
tree | 4b09e5b91fbefd56673b1a36b344cdb9420db0d2 | |
parent | 44527f5c338320a2ddbd0fab81a635dfcb2adb90 (diff) | |
download | libgit2-406b47bf4086f09a6686db97099347f52291a4a7.tar.gz |
curl: free the proxy options
-rw-r--r-- | src/curl_stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/curl_stream.c b/src/curl_stream.c index 24bf62635..0eee18782 100644 --- a/src/curl_stream.c +++ b/src/curl_stream.c @@ -195,6 +195,7 @@ static int curls_set_proxy(git_stream *stream, const git_proxy_options *proxy_op CURLcode res; curl_stream *s = (curl_stream *) stream; + git_proxy_options_free(&s->proxy); if ((error = git_proxy_options_dup(&s->proxy, proxy_opts)) < 0) return error; @@ -295,6 +296,7 @@ static void curls_free(git_stream *stream) curls_close(stream); git_strarray_free(&s->cert_info_strings); + git_proxy_options_free(&s->proxy); git__free(s); } |