From: Ralf Wildenhues Date: Fri, 8 Oct 2004 14:10:33 +0000 (+0000) Subject: * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks, X-Git-Tag: release-2-1b~921 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567c9626d997336be80a239646d4f2d331b3591f;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 475b64075..d9f299b1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-07 Ralf Wildenhues + + * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks, + free user_search_path on lt_dlexit. + 2004-10-07 Ralf Wildenhues * tests/sh.test: Remove tests which fail on AS_SHELL_SANITIZE diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 391598e67..1beca9f01 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -294,6 +294,8 @@ lt_dlexit (void) loader = next; } + + FREE(user_search_path); } done: @@ -1849,7 +1851,7 @@ lt_dlpath_insertdir (char **ppath, char *before, const char *dir) if (*ppath == 0) ++errors; - return errors; + goto cleanup; } assert (ppath && *ppath);