mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 05:38:41 +00:00
Merge pull request #3527 from pks-t/pks/tree-entry-memleak
tree: mark cloned tree entries as un-pooled
This commit is contained in:
commit
15e6a5afb9
@ -253,6 +253,8 @@ int git_tree_entry_dup(git_tree_entry **dest, const git_tree_entry *source)
|
|||||||
|
|
||||||
memcpy(copy, source, total_size);
|
memcpy(copy, source, total_size);
|
||||||
|
|
||||||
|
copy->pooled = 0;
|
||||||
|
|
||||||
*dest = copy;
|
*dest = copy;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user