]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set dl_loader to NULL only when things are OK
authorAlan T. DeKok <aland@freeradius.org>
Mon, 12 Nov 2018 16:32:43 +0000 (11:32 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 12 Nov 2018 16:34:14 +0000 (11:34 -0500)
src/lib/server/dl.c

index e101e284c4b4764703a37866731eeb88134d04b4..7888396b17c90c4841e0fe57fec1b3efbdf66082 100644 (file)
@@ -972,6 +972,7 @@ static int _dl_loader_free(dl_loader_t *dl_l)
 #ifndef NDEBUG
                WARN("This may appear as a leak in talloc memory reports");
 #endif
+       } else {
                dl_loader = NULL;
        }