summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Curry <pacman@world.std.com>2001-04-17 02:42:46 +0000
committerRobert Boehne <rboehne@gnu.org>2001-04-17 02:42:46 +0000
commit0dc5719b1a8282dbb019a0f93fecc34c5578d7fd (patch)
treebc2d882e1dc0797df5db440ad95fb527062de205
parentf767619267a81db3298ed9787b0c307c596d3808 (diff)
downloadlibtool-branch-1-3.tar.gz
Fixed a memory leak in lt_dlopen().branch-1-3
-rw-r--r--ChangeLog4
-rw-r--r--libltdl/ltdl.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ab14f63c..87ef8c40 100644
--- 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
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);
}