From 567c9626d997336be80a239646d4f2d331b3591f Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 8 Oct 2004 14:10:33 +0000 Subject: [PATCH] * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks, free user_search_path on lt_dlexit. --- ChangeLog | 5 +++++ libltdl/ltdl.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 475b6407..d9f299b1 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 391598e6..1beca9f0 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);