diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/proxy.c | 6 | ||||
-rw-r--r-- | src/proxy.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/proxy.c b/src/proxy.c index b07371d48..524147c3c 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -31,3 +31,9 @@ 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) +{ + git__free((char *) opts->url); + opts->url = NULL; +} diff --git a/src/proxy.h b/src/proxy.h index 7582301c9..cad8d67c8 100644 --- a/src/proxy.h +++ b/src/proxy.h @@ -12,5 +12,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); #endif |