diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-17 09:33:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-17 09:33:23 +0400 |
commit | 02987fd5e1fa3715d25bb7b9bd659fd509f40c57 (patch) | |
tree | 0c03dced8c9239d3589fad9e129542981dcac262 /source/blender/blenlib | |
parent | 8a2bf0ba5498db16e11307fd2699815fb3b1cd3b (diff) |
fix [#30220] Knife Tool Leaks memory
both crash and leak are fixed now.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/smallhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/smallhash.c b/source/blender/blenlib/intern/smallhash.c index aaa518d3e1c..fb03849bfb3 100644 --- a/source/blender/blenlib/intern/smallhash.c +++ b/source/blender/blenlib/intern/smallhash.c @@ -88,7 +88,7 @@ void BLI_smallhash_insert(SmallHash *hash, uintptr_t key, void *item) int i = 0; if (hash->table != hash->stacktable || newsize > SMSTACKSIZE) { - tmp = MEM_callocN(sizeof(*hash->table) * newsize, "new hashkeys"); + tmp = MEM_callocN(sizeof(*hash->table) * newsize, __func__); } else { SWAP(SmallHashEntry *, hash->stacktable, hash->copytable); |