whitelisting static Curl_getaddrinfo() memory leak
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Mar 2007 16:07:22 +0000 (16:07 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Mar 2007 16:07:22 +0000 (16:07 -0000)
src/libstrongswan/utils/leak_detective.c

index 2c1cde7..3f564b0 100644 (file)
@@ -175,6 +175,10 @@ struct whitelist_t {
        size_t range_size;
 };
 
+#ifdef LIBCURL
+void *Curl_getaddrinfo(void);
+#endif
+
 whitelist_t whitelist[] = {
        {pthread_create,                        2542},
        {pthread_setspecific,            217},
@@ -187,6 +191,8 @@ whitelist_t whitelist[] = {
        {register_printf_function,       159},
        {syslog,                                          45},
        {dlopen,                                         109},
+       /* from /usr/lib/libcurl.so.3 */
+       {Curl_getaddrinfo,                       480},
 };
 
 /**