mirror of
https://git.proxmox.com/git/libgit2
synced 2026-03-24 13:52:50 +00:00
clone: Fix a memory leak
This commit is contained in:
parent
09556895b7
commit
d1aee4775a
@ -333,6 +333,7 @@ static int setup_remotes_and_fetch(
|
|||||||
}
|
}
|
||||||
git_remote_disconnect(origin);
|
git_remote_disconnect(origin);
|
||||||
}
|
}
|
||||||
|
git_remote_free(origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
return retcode;
|
return retcode;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user