leak-detective: Whitelist gcrypt_plugin_create()
authorMartin Willi <martin@revosec.ch>
Mon, 13 Apr 2015 10:02:07 +0000 (12:02 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 12:38:42 +0000 (14:38 +0200)
gcry_check_version() does not free statically allocated resources. However,
we can't whitelist it in some versions, as it is not a resolvable symbol name.
Instead, whitelist our own plugin constructor function.

src/libstrongswan/utils/leak_detective.c

index bc8432a..e4cd3d7 100644 (file)
@@ -552,6 +552,7 @@ char *whitelist[] = {
        /* ClearSilver */
        "nerr_init",
        /* libgcrypt */
+       "gcrypt_plugin_create",
        "gcry_control",
        "gcry_check_version",
        "gcry_randomize",