]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
free ctx on error
authorAlan T. DeKok <aland@freeradius.org>
Tue, 5 Nov 2019 01:51:10 +0000 (20:51 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 5 Nov 2019 01:51:27 +0000 (20:51 -0500)
src/lib/util/dl.c

index 71676ecf789084acf2cf05c901c6afc08af40d50..ba68631776b2d0d3d8cf4001fa5548d217c4db8a 100644 (file)
@@ -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;
                }