From 0ea34d47052fe9034f3c3121e581ded048e6cd9c Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sat, 6 Dec 2008 11:41:08 +0000 Subject: [PATCH] Memory leak: False positive with g_realloc(). Removed g_realloc() and g_try_realloc() for now. See feature request [ 2395262 ] Check leaks with realloc, g_realloc and g_try_realloc() --- CheckMemoryLeak.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CheckMemoryLeak.cpp b/CheckMemoryLeak.cpp index 715b8acdb..801b013e3 100644 --- a/CheckMemoryLeak.cpp +++ b/CheckMemoryLeak.cpp @@ -93,7 +93,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType( const T return Malloc; } - // Does tok2 point on "malloc", "strdup" or "kmalloc".. + // Does tok2 point on "g_malloc", "g_strdup", .. const char *gmallocfunc[] = {"g_new", "g_new0", "g_renew", @@ -102,10 +102,8 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType( const T "g_try_renew", "g_malloc", "g_malloc0", - "g_realloc", "g_try_malloc", "g_try_malloc0", - "g_try_realloc", "g_strdup", "g_strndup", 0};