From 7939864decee1a65af6178606af870382d17756c Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 28 Mar 2008 13:16:36 +0000 Subject: [PATCH] updated leak_detective whitelist: libxml and clearsilver functions --- src/libstrongswan/utils/leak_detective.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c index a86fe0229..9f6f3ad42 100644 --- a/src/libstrongswan/utils/leak_detective.c +++ b/src/libstrongswan/utils/leak_detective.c @@ -212,8 +212,10 @@ static void log_stack_frames(void **stack_frames, int stack_frame_count) * otherwise on leak report. */ char *whitelist[] = { + /* pthread stuff */ "pthread_create", "pthread_setspecific", + /* glibc functions */ "mktime", "tzset", "inet_ntoa", @@ -224,13 +226,22 @@ char *whitelist[] = { "register_printf_function", "syslog", "vsyslog", - "dlopen", "getaddrinfo", "setlocale", + /* ignore dlopen, as we do not dlclose to get proper leak reports */ + "dlopen", + /* mysql functions */ "mysql_init_character_set", "init_client_errs", "my_thread_init", + /* fastcgi library */ "FCGX_Init", + /* libxml */ + "xmlInitCharEncodingHandlers", + "xmlInitParser", + "xmlInitParserCtxt", + /* ClearSilver */ + "nerr_init", }; /**