summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/rtld.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 948cf49..5c2db0a 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -1633,12 +1633,9 @@ load_object(const char *name, const Obj_Entry *refobj, int flags)
free(path);
return NULL;
}
- for (obj = obj_list->next; obj != NULL; obj = obj->next) {
- if (obj->ino == sb.st_ino && obj->dev == sb.st_dev) {
- close(fd);
+ for (obj = obj_list->next; obj != NULL; obj = obj->next)
+ if (obj->ino == sb.st_ino && obj->dev == sb.st_dev)
break;
- }
- }
if (obj != NULL) {
object_add_name(obj, name);
free(path);
OpenPOWER on IntegriCloud