From: Alan T. DeKok Date: Thu, 19 Dec 2019 15:05:02 +0000 (-0500) Subject: handle is always set. Found by PVS-Studio X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ebdb77ecc8f522cf246bf2a631d6d3bf2127c56;p=thirdparty%2Ffreeradius-server.git handle is always set. Found by PVS-Studio --- diff --git a/src/lib/util/dl.c b/src/lib/util/dl.c index 70e257c9532..a2a80473d44 100644 --- a/src/lib/util/dl.c +++ b/src/lib/util/dl.c @@ -576,7 +576,7 @@ dl_t *dl_by_name(dl_loader_t *dl_loader, char const *name, void *uctx, bool uctx dl = talloc_zero(dl_loader, dl_t); if (!dl) { - if(handle) dlclose(handle); + dlclose(handle); return NULL; }