]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fixed a memory leak in lt_dlopen(). branch-1-3
authorAlan Curry <pacman@world.std.com>
Tue, 17 Apr 2001 02:42:46 +0000 (02:42 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 17 Apr 2001 02:42:46 +0000 (02:42 +0000)
ChangeLog
libltdl/ltdl.c

index ab14f63c10bf8cd7b7025da4833a5f47f1aed94b..87ef8c409d84c26591e0f46f171e700d5300867a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-16  Alan Curry <pacman@world.std.com>
+
+       * libltdl/ltdl.c (lt_dlopen): Fixed a memory leak.
+
 2001-03-06  Alexandre Oliva  <aoliva@redhat.com>
 
        * ltconfig.in (can_build_shared) [AIX 4.[01], GCC]: GCC up to
index aec38497d075ab52e014220b629a15bc76f7b6ec..1fbe962ccb6a4bd257c57e418ab6c76d461d37f7 100644 (file)
@@ -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);
                }