From: Alan T. DeKok Date: Tue, 5 Nov 2019 01:51:10 +0000 (-0500) Subject: free ctx on error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e28f00bd6fe596a7f02c785f4a5e626ceade1638;p=thirdparty%2Ffreeradius-server.git free ctx on error --- diff --git a/src/lib/util/dl.c b/src/lib/util/dl.c index 71676ecf789..ba68631776b 100644 --- a/src/lib/util/dl.c +++ b/src/lib/util/dl.c @@ -549,6 +549,7 @@ dl_t *dl_by_name(dl_loader_t *dl_loader, char const *name, void *uctx, bool uctx * the error from the last dlopen(). */ if (!handle) { + talloc_free(ctx); fr_strerror_printf("%s", dlerror()); return NULL; }