Commit 8d7dcb10 by Carlos Martín Nieto Committed by Patrick Steinhardt

curl: free the proxy options

parent e29ab6fe
......@@ -193,6 +193,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;
......@@ -293,6 +294,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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment