]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (try_dlopen): Fix memory leak.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 2 Sep 2004 13:27:24 +0000 (13:27 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 2 Sep 2004 13:27:24 +0000 (13:27 +0000)
* NEWS: Updated.

ChangeLog
NEWS
libltdl/ltdl.c

index 4c4c3a8b6972c85c5f0d1e3917b4b562c68e6477..fb8e4876aba0fca1062fa36fa53c82df1c86d413 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/ltdl.c (try_dlopen): Fix memory leak.
+       * NEWS: Updated.
+
 2004-09-02  Gary V. Vaughan  <gary@gnu.org>,
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
diff --git a/NEWS b/NEWS
index 435a4a444c8a0f694949214bb083b25bd6092d75..fb2ea3e214f937d9f15dbb59ba46a8767ac09df8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ New in 1.9d: 2004-??-??; CVS version 1.9c, Libtool team:
   types have been exchanged.  See libltdl/slist.c for documentation.
 * libltdl is C89 compatible again.  lt_dlsymbol type removed, and lt_dlsymlist
   structure changed to avoid using C99 flexible arrays.
+* Fixed some memory leaks in libltdl.
 \f
 New in 1.9b: 2004-08-29; CVS version 1.5a, Libtool team:
 * The /^_?LT_[A-Z_]+$/ namespace is now reserved for Libtool's own macros.
index 4e95b120977ed4979fe04afb522b13d408260f3d..f0f00682790e12e27a7a433be16d92542123880f 100644 (file)
@@ -1289,6 +1289,8 @@ try_dlopen (lt_dlhandle *phandle, const char *filename)
  cleanup:
   FREE (dir);
   FREE (name);
+  if (!canonical)              /* was MEMREASSIGNed */
+    FREE (base_name);
   FREE (canonical);
 
   return errors;