From 5c91d93c6b9cca68483fde63e755eafb8c613815 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 8 Oct 2004 14:16:45 +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 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); -- 2.47.2