Patch from Alan Curry, who thinks we shouldn't have to go
authoraland <aland>
Fri, 9 Feb 2001 16:15:34 +0000 (16:15 +0000)
committeraland <aland>
Fri, 9 Feb 2001 16:15:34 +0000 (16:15 +0000)
through this crap.

Depending on other people's shitty code is a waste of time...

libltdl/ltdl.c

index b6675c4..fd7fc28 100644 (file)
@@ -1349,6 +1349,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);
                }