Applied patch 0003-GetAllocationType-mark-some-members-as-static-and-a.patch
Author: php-coder Ticket: http://apps.sourceforge.net/trac/cppcheck/ticket/321
This commit is contained in:
parent
eafb1f823c
commit
47e10b75e3
|
@ -70,7 +70,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType(const To
|
||||||
return No;
|
return No;
|
||||||
|
|
||||||
// Does tok2 point on "malloc", "strdup" or "kmalloc"..
|
// Does tok2 point on "malloc", "strdup" or "kmalloc"..
|
||||||
const char *mallocfunc[] = {"malloc",
|
static const char * const mallocfunc[] = {"malloc",
|
||||||
"calloc",
|
"calloc",
|
||||||
"strdup",
|
"strdup",
|
||||||
"strndup",
|
"strndup",
|
||||||
|
@ -86,7 +86,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType(const To
|
||||||
}
|
}
|
||||||
|
|
||||||
// Does tok2 point on "g_malloc", "g_strdup", ..
|
// Does tok2 point on "g_malloc", "g_strdup", ..
|
||||||
const char *gmallocfunc[] = {"g_new",
|
static const char * const gmallocfunc[] = {"g_new",
|
||||||
"g_new0",
|
"g_new0",
|
||||||
"g_try_new",
|
"g_try_new",
|
||||||
"g_try_new0",
|
"g_try_new0",
|
||||||
|
|
Loading…
Reference in New Issue