Commit 6cb7966d by Edward Thomson

clone: free connect opts

parent 8eadeede
......@@ -447,6 +447,7 @@ static int clone_into(
cleanup:
git_remote_free(remote);
git_remote_connect_options_dispose(&connect_opts);
git_str_dispose(&reflog_message);
return error;
......
......@@ -17,6 +17,7 @@
#include "refspec.h"
#include "vector.h"
#include "net.h"
#include "proxy.h"
#define GIT_REMOTE_ORIGIN "origin"
......@@ -89,4 +90,11 @@ GIT_INLINE(int) git_remote_connect_options__from_push_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
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