Unverified Commit d9475611 by Edward Thomson Committed by GitHub

Merge pull request #6651 from 7Ji/download_leak_fix

remote: fix memory leak in git_remote_download()
parents 95adbdeb ffc12e66
......@@ -1339,7 +1339,11 @@ int git_remote_download(
if ((error = connect_or_reset_options(remote, GIT_DIRECTION_FETCH, &connect_opts)) < 0)
return error;
return git_remote__download(remote, refspecs, opts);
error = git_remote__download(remote, refspecs, opts);
git_remote_connect_options_dispose(&connect_opts);
return error;
}
int git_remote_fetch(
......
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