From: Ralf Wildenhues Date: Fri, 8 Oct 2004 14:16:45 +0000 (+0000) Subject: * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks, X-Git-Tag: release-1-9f~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c91d93c6b9cca68483fde63e755eafb8c613815;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks, free user_search_path on lt_dlexit. --- diff --git a/ChangeLog b/ChangeLog index 79b43033a..c53358dd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-08 Ralf Wildenhues + + * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks, + free user_search_path on lt_dlexit. + 2004-10-08 Gary V. Vaughan * config/general.m4sh (func_verbose): Work around a bash bug in diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 06ce70468..4a1ea94f8 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -294,6 +294,8 @@ lt_dlexit (void) loader = next; } + + FREE(user_search_path); } done: @@ -1838,7 +1840,7 @@ lt_dlpath_insertdir (char **ppath, char *before, const char *dir) if (*ppath == 0) ++errors; - return errors; + goto cleanup; } assert (ppath && *ppath);