From: Gary V. Vaughan Date: Thu, 3 Feb 2000 12:54:29 +0000 (+0000) Subject: * libltdl/ltdl.c (find_file): Prevent early release of memory X-Git-Tag: release-1-3d~200 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9218f3bcc2c98049c7b42e46218547c7423183c2;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (find_file): Prevent early release of memory in filename/*pdir. From Jon Leichter --- 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; }