* libltdl/ltdl.c (find_file): Prevent early release of memory

in filename/*pdir.
From Jon Leichter <jon@symas.com>
This commit is contained in:
Gary V. Vaughan 2000-02-03 12:54:29 +00:00
parent ade92ab63b
commit 9218f3bcc2
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2000-02-03 Gary V. Vaughan <gary@oranda.demon.co.uk>
* libltdl/ltdl.c (find_file): Prevent early release of memory
in filename/*pdir.
From Jon Leichter <jon@symas.com>
(sys_wll_init): Deleted. No longer required. And this time,
with feeling!
(sys_wll_exit): Ditto.

View File

@ -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;
}