Skip to content

Commit 25fdb3f

Browse files
committed
proxy: rename the options freeing function
1 parent 6f8d1eb commit 25fdb3f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/curl_stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +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);
198+
git_proxy_options_clear(&s->proxy);
199199
if ((error = git_proxy_options_dup(&s->proxy, proxy_opts)) < 0)
200200
return error;
201201

@@ -296,7 +296,7 @@ static void curls_free(git_stream *stream)
296296

297297
curls_close(stream);
298298
git_strarray_free(&s->cert_info_strings);
299-
git_proxy_options_free(&s->proxy);
299+
git_proxy_options_clear(&s->proxy);
300300
git_cred_free(s->proxy_cred);
301301
git__free(s);
302302
}

src/proxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src)
3232
return 0;
3333
}
3434

35-
void git_proxy_options_free(git_proxy_options *opts)
35+
void git_proxy_options_clear(git_proxy_options *opts)
3636
{
3737
git__free((char *) opts->url);
3838
opts->url = NULL;

src/proxy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
#include "git2/proxy.h"
1313

1414
extern int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src);
15-
extern void git_proxy_options_free(git_proxy_options *opts);
15+
extern void git_proxy_options_clear(git_proxy_options *opts);
1616

1717
#endif

0 commit comments

Comments
 (0)