summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/i386
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-06-10 21:15:50 +0000
committerdillon <dillon@FreeBSD.org>2002-06-10 21:15:50 +0000
commit46d8228e36ec98f94bed90828d8fe52010490c0e (patch)
tree90cffddfe667bcea229b07146014377023bf4b40 /libexec/rtld-elf/i386
parentcd25d4648fdd5f53f76f460b7f57015bdc89bb56 (diff)
downloadFreeBSD-src-46d8228e36ec98f94bed90828d8fe52010490c0e.zip
FreeBSD-src-46d8228e36ec98f94bed90828d8fe52010490c0e.tar.gz
Correct a bug in the last commit. The whole point of creating a 'done:'
goto target was so the cache could be freed. So free the cache after done: rather then before done: (!) Submitted by: Gavin Atkinson <gavin@ury.york.ac.uk>
Diffstat (limited to 'libexec/rtld-elf/i386')
-rw-r--r--libexec/rtld-elf/i386/reloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rtld-elf/i386/reloc.c b/libexec/rtld-elf/i386/reloc.c
index c306a84..f3425eb 100644
--- a/libexec/rtld-elf/i386/reloc.c
+++ b/libexec/rtld-elf/i386/reloc.c
@@ -211,11 +211,11 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld)
goto done;
}
}
+ r = 0;
+done:
if (cache)
munmap(cache, bytes);
- r = 0;
-done:
- return(r);
+ return(r);
}
/* Process the PLT relocations. */
OpenPOWER on IntegriCloud