]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 0a87893354e58e3400d50957d02304302b6df406..81524b6e74a8de95dd37286b9f5b663508c1abbb 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",