mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 21:44:58 +00:00
Rev-parse: fixing double-freeing. Thanks, Visual Studio!
This commit is contained in:
parent
a6346302e6
commit
bae780e084
@ -277,7 +277,7 @@ static int dereference_to_type(git_object **out, git_object *obj, git_otype targ
|
||||
retcode = GIT_ERROR;
|
||||
}
|
||||
}
|
||||
if (obj1 != obj) {
|
||||
if (obj1 != obj && obj1 != obj2) {
|
||||
git_object_free(obj1);
|
||||
}
|
||||
obj1 = obj2;
|
||||
|
Loading…
Reference in New Issue
Block a user