]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If not running under valgrind AND not running under LSAN dlclose()
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 5 Apr 2018 14:38:05 +0000 (15:38 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 5 Apr 2018 14:38:05 +0000 (15:38 +0100)
src/main/dl.c

index e16ecf0c2e205ee03b169ed40827e27d0668a112..f1d26b49c2c9812c51d63713359666df35e211e7 100644 (file)
@@ -359,7 +359,7 @@ static int _dl_free(dl_t *module)
         *      Only dlclose() handle if we're *NOT* running under valgrind
         *      as it unloads the symbols valgrind needs.
         */
-       if (!RUNNING_ON_VALGRIND || (fr_get_lsan_state() != 1)) dlclose(module->handle);        /* ignore any errors */
+       if (!RUNNING_ON_VALGRIND && (fr_get_lsan_state() != 1)) dlclose(module->handle);        /* ignore any errors */
 
        module->handle = NULL;