mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
* libltdl/ltdl.c (find_file): Prevent early release of memory
in filename/*pdir. From Jon Leichter <jon@symas.com>
This commit is contained in:
parent
ade92ab63b
commit
9218f3bcc2
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user