Skip to content

Commit 406b47b

Browse files
committed
curl: free the proxy options
1 parent 44527f5 commit 406b47b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/curl_stream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ static int curls_set_proxy(git_stream *stream, const git_proxy_options *proxy_op
195195
CURLcode res;
196196
curl_stream *s = (curl_stream *) stream;
197197

198+
git_proxy_options_free(&s->proxy);
198199
if ((error = git_proxy_options_dup(&s->proxy, proxy_opts)) < 0)
199200
return error;
200201

@@ -295,6 +296,7 @@ static void curls_free(git_stream *stream)
295296

296297
curls_close(stream);
297298
git_strarray_free(&s->cert_info_strings);
299+
git_proxy_options_free(&s->proxy);
298300
git__free(s);
299301
}
300302

0 commit comments

Comments
 (0)