From 02987fd5e1fa3715d25bb7b9bd659fd509f40c57 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 17 Feb 2012 05:33:23 +0000 Subject: fix [#30220] Knife Tool Leaks memory both crash and leak are fixed now. --- source/blender/blenlib/intern/smallhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib') 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); -- cgit v1.2.3