diff --git a/components/libc/libdl/dlmodule.c b/components/libc/libdl/dlmodule.c index 0029c0172801ea70ce922a50cf5cff1fb780035d..14cbfe4cfb842954798d7d0b156f05692a60a17c 100644 --- a/components/libc/libdl/dlmodule.c +++ b/components/libc/libdl/dlmodule.c @@ -442,6 +442,10 @@ struct rt_dlmodule* dlmodule_load(const char* filename) close(fd); fd = -1; } + else + { + goto __exit; + } /* check ELF header */ if (rt_memcmp(elf_module->e_ident, RTMMAG, SELFMAG) != 0 &&