From: Arran Cudbard-Bell Date: Thu, 5 Apr 2018 14:38:05 +0000 (+0100) Subject: If not running under valgrind AND not running under LSAN dlclose() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e482fc4ac52dcdfe3c77873864db9af06cdbb72c;p=thirdparty%2Ffreeradius-server.git If not running under valgrind AND not running under LSAN dlclose() --- diff --git a/src/main/dl.c b/src/main/dl.c index e16ecf0c2e2..f1d26b49c2c 100644 --- a/src/main/dl.c +++ b/src/main/dl.c @@ -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;