diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2010-06-18 15:17:38 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2010-06-18 15:17:38 +0000 |
| commit | 4b7306ec23bea5fa3d5466308e6b6c550655605d (patch) | |
| tree | 2805611aca1bb2a4821f9c801358c26a39db80a8 /libexec/rtld-elf | |
| parent | 464bf49522922551443988c4cfa57f64fe3aa468 (diff) | |
Notes
Diffstat (limited to 'libexec/rtld-elf')
| -rw-r--r-- | libexec/rtld-elf/rtld.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 481cc1349ebc..55265277d6d5 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -1530,8 +1530,10 @@ load_object(const char *name, const Obj_Entry *refobj, int flags) close(fd); return obj; } - if (flags & RTLD_LO_NOLOAD) + if (flags & RTLD_LO_NOLOAD) { + free(path); return (NULL); + } /* First use of this object, so we must map it in */ obj = do_load_object(fd, name, path, &sb, flags); |
