From 9218f3bcc2c98049c7b42e46218547c7423183c2 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Thu, 3 Feb 2000 12:54:29 +0000 Subject: [PATCH] * libltdl/ltdl.c (find_file): Prevent early release of memory in filename/*pdir. From Jon Leichter --- ChangeLog | 4 ++++ libltdl/ltdl.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3aeb70c7..0aaf967d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-02-03 Gary V. Vaughan + * libltdl/ltdl.c (find_file): Prevent early release of memory + in filename/*pdir. + From Jon Leichter + (sys_wll_init): Deleted. No longer required. And this time, with feeling! (sys_wll_exit): Ditto. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 2276810aa..a433d264a 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1075,8 +1075,8 @@ find_file (basename, search_path, pdir, handle) strdup, but there would be some memory overhead. */ *pdir = filename; - } else filename = 0; + } result = (lt_ptr_t) file; goto cleanup; } @@ -1106,7 +1106,7 @@ load_deplibs(handle, deplibs) if (!deplibs) return 0; save_search_path = strdup(user_search_path); - if (user_search_path && !save_search_path) { + if (user_search_path && !save_search_path) { last_error = LT_DLSTRERROR(NO_MEMORY); return 1; } -- 2.47.3