summaryrefslogtreecommitdiff
path: root/libltdl
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl')
-rw-r--r--libltdl/ltdl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index aec38497..1fbe962c 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -1365,6 +1365,7 @@ lt_dlopen (filename)
free_vars(name, dir, dlname, old_name, libdir, deplibs);
return 0;
}
+ free_vars(NULL, NULL, dlname, old_name, libdir, deplibs);
if (handle != newhandle) {
unload_deplibs(handle);
}