diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-12-01 08:45:55 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-12-01 08:45:55 -0500 |
commit | 15e6a5afb9217b09e60cd0aef48e0a7781f3922f (patch) | |
tree | 39691fcf493c6571fdf30a02610c02c1a837ab45 | |
parent | 337b2b08f46ea77d61fa66657ad62d8702bc233a (diff) | |
parent | 9487585ddc5d7cbb8b9d085e030a01ff805bc41b (diff) | |
download | libgit2-15e6a5afb9217b09e60cd0aef48e0a7781f3922f.tar.gz |
Merge pull request #3527 from pks-t/pks/tree-entry-memleak
tree: mark cloned tree entries as un-pooled
-rw-r--r-- | src/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c index 0a32868cd..0e3738afa 100644 --- a/src/tree.c +++ b/src/tree.c @@ -253,6 +253,8 @@ int git_tree_entry_dup(git_tree_entry **dest, const git_tree_entry *source) memcpy(copy, source, total_size); + copy->pooled = 0; + *dest = copy; return 0; } |