diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-12-11 18:54:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-12-11 18:54:37 +0000 |
commit | c9f39c4ab6f74086c291ed477eaeda2e1ffec5c2 (patch) | |
tree | cadbd9498c105ab568ccc12877abe40b9c6ae177 /gnu/usr.bin | |
parent | 3f4357f701bd93523718fad49f37ca46a1bf7b7c (diff) |
Don't free pathname after successfull _try_needed call; it's cached in that
case. Fixes "could not read symbols: File truncated" problems.
ok deraadt@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/ld/emultempl/elf32.em | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elf32.em b/gnu/usr.bin/binutils/ld/emultempl/elf32.em index ed4aba73911..151ec198dab 100644 --- a/gnu/usr.bin/binutils/ld/emultempl/elf32.em +++ b/gnu/usr.bin/binutils/ld/emultempl/elf32.em @@ -628,7 +628,6 @@ case ${target} in char *found; if ((found = gld${EMULATION_NAME}_search_dir_needed(path, name)) != NULL) { if (gld${EMULATION_NAME}_try_needed (found, force)) { - free(found); return TRUE; } free(found); |