From: Ralf Wildenhues Date: Thu, 2 Sep 2004 13:27:24 +0000 (+0000) Subject: * libltdl/ltdl.c (try_dlopen): Fix memory leak. X-Git-Tag: release-1-9d~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45d3a0d18f90457b46120d340e7029d49f921af;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (try_dlopen): Fix memory leak. * NEWS: Updated. --- diff --git a/ChangeLog b/ChangeLog index 4c4c3a8b6..fb8e4876a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-02 Ralf Wildenhues + + * libltdl/ltdl.c (try_dlopen): Fix memory leak. + * NEWS: Updated. + 2004-09-02 Gary V. Vaughan , Ralf Wildenhues diff --git a/NEWS b/NEWS index 435a4a444..fb2ea3e21 100644 --- 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. 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. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 4e95b1209..f0f006827 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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;