mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 17:46:09 +00:00
Plugging memory leak.
This commit is contained in:
parent
c8a33547a0
commit
b41384b473
@ -270,6 +270,8 @@ static int walk_ref_history(git_object **out, git_repository *repo, const char *
|
||||
const git_reflog_entry *entry = git_reflog_entry_byindex(reflog, 0);
|
||||
retcode = git_object_lookup(out, repo, git_reflog_entry_oidnew(entry), GIT_OBJ_ANY);
|
||||
}
|
||||
|
||||
git_reflog_free(reflog);
|
||||
}
|
||||
|
||||
git_reference_free(ref);
|
||||
|
Loading…
Reference in New Issue
Block a user