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()
This commit is contained in:
parent
2f27bf09b8
commit
0ea34d4705
|
@ -93,7 +93,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType( const T
|
||||||
return Malloc;
|
return Malloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Does tok2 point on "malloc", "strdup" or "kmalloc"..
|
// Does tok2 point on "g_malloc", "g_strdup", ..
|
||||||
const char *gmallocfunc[] = {"g_new",
|
const char *gmallocfunc[] = {"g_new",
|
||||||
"g_new0",
|
"g_new0",
|
||||||
"g_renew",
|
"g_renew",
|
||||||
|
@ -102,10 +102,8 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType( const T
|
||||||
"g_try_renew",
|
"g_try_renew",
|
||||||
"g_malloc",
|
"g_malloc",
|
||||||
"g_malloc0",
|
"g_malloc0",
|
||||||
"g_realloc",
|
|
||||||
"g_try_malloc",
|
"g_try_malloc",
|
||||||
"g_try_malloc0",
|
"g_try_malloc0",
|
||||||
"g_try_realloc",
|
|
||||||
"g_strdup",
|
"g_strdup",
|
||||||
"g_strndup",
|
"g_strndup",
|
||||||
0};
|
0};
|
||||||
|
|
Loading…
Reference in New Issue