Commit 6cb7966d by Edward Thomson

clone: free connect opts

parent 8eadeede
...@@ -447,6 +447,7 @@ static int clone_into( ...@@ -447,6 +447,7 @@ static int clone_into(
cleanup: cleanup:
git_remote_free(remote); git_remote_free(remote);
git_remote_connect_options_dispose(&connect_opts);
git_str_dispose(&reflog_message); git_str_dispose(&reflog_message);
return error; return error;
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "refspec.h" #include "refspec.h"
#include "vector.h" #include "vector.h"
#include "net.h" #include "net.h"
#include "proxy.h"
#define GIT_REMOTE_ORIGIN "origin" #define GIT_REMOTE_ORIGIN "origin"
...@@ -89,4 +90,11 @@ GIT_INLINE(int) git_remote_connect_options__from_push_opts( ...@@ -89,4 +90,11 @@ GIT_INLINE(int) git_remote_connect_options__from_push_opts(
#undef git_remote_connect_options__copy_opts #undef git_remote_connect_options__copy_opts
GIT_INLINE(void) git_remote_connect_options__dispose(
git_remote_connect_options *opts)
{
git_proxy_options_dispose(&opts->proxy_opts);
git_strarray_dispose(&opts->custom_headers);
}
#endif #endif
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