proxy: rename the options freeing function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff --git a/src/curl_stream.c b/src/curl_stream.c
index ba09074..ac0f95a 100644
--- a/src/curl_stream.c
+++ b/src/curl_stream.c
@@ -193,7 +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);
+ git_proxy_options_clear(&s->proxy);
if ((error = git_proxy_options_dup(&s->proxy, proxy_opts)) < 0)
return error;
@@ -294,7 +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_proxy_options_clear(&s->proxy);
git_cred_free(s->proxy_cred);
git__free(s);
}
diff --git a/src/proxy.c b/src/proxy.c
index 35855e9..87c4a8d 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -31,7 +31,7 @@ int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src)
return 0;
}
-void git_proxy_options_free(git_proxy_options *opts)
+void git_proxy_options_clear(git_proxy_options *opts)
{
git__free((char *) opts->url);
opts->url = NULL;
diff --git a/src/proxy.h b/src/proxy.h
index 7d35a20..840dd1f 100644
--- a/src/proxy.h
+++ b/src/proxy.h
@@ -10,6 +10,6 @@
#include "git2/proxy.h"
extern int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src);
-extern void git_proxy_options_free(git_proxy_options *opts);
+extern void git_proxy_options_clear(git_proxy_options *opts);
#endif
\ No newline at end of file