mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Merge pull request #6651 from 7Ji/download_leak_fix
remote: fix memory leak in git_remote_download()
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user