Add safe_strerror() to leak detective whitelist
authorMartin Willi <martin@revosec.ch>
Wed, 11 Jul 2012 06:45:15 +0000 (08:45 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 11 Jul 2012 06:45:15 +0000 (08:45 +0200)
While the thread specific strerror buffer gets cleaned up for
worker threads during their termination, the main thread itself,
and so its strerror buffer, is still alive during leak reports.

src/libstrongswan/utils/leak_detective.c

index 0a87893..81524b6 100644 (file)
@@ -188,6 +188,7 @@ static void uninstall_hooks()
 char *whitelist[] = {
        /* backtraces, including own */
        "backtrace_create",
+       "safe_strerror",
        /* pthread stuff */
        "pthread_create",
        "pthread_setspecific",