aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-07-11 08:45:15 +0200
committerMartin Willi <martin@revosec.ch>2012-07-11 08:45:15 +0200
commit7c8b9fcbf68dfbf721d0b77752f9cdc972c46bb3 (patch)
tree268712198276f91a767cc482743c50d090152582
parent07836f559def3a2ee5d7678ed876b135bdfa16d3 (diff)
downloadstrongswan-7c8b9fcbf68dfbf721d0b77752f9cdc972c46bb3.tar.bz2
strongswan-7c8b9fcbf68dfbf721d0b77752f9cdc972c46bb3.tar.xz
Add safe_strerror() to leak detective whitelist
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.
-rw-r--r--src/libstrongswan/utils/leak_detective.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c
index 0a8789335..81524b6e7 100644
--- a/src/libstrongswan/utils/leak_detective.c
+++ b/src/libstrongswan/utils/leak_detective.c
@@ -188,6 +188,7 @@ static void uninstall_hooks()
char *whitelist[] = {
/* backtraces, including own */
"backtrace_create",
+ "safe_strerror",
/* pthread stuff */
"pthread_create",
"pthread_setspecific",