From b2568a30b160106d0256e6b109f51b532365fa7c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 20 Oct 2008 11:42:14 +0000 Subject: [PATCH] Patch by romain: Fixed FD leak after opening an image that has already been loaded. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28246 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/runtime_loader/elf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/runtime_loader/elf.cpp b/src/system/runtime_loader/elf.cpp index 1d4065fc92..54d6edeac4 100644 --- a/src/system/runtime_loader/elf.cpp +++ b/src/system/runtime_loader/elf.cpp @@ -1297,6 +1297,7 @@ load_container(char const *name, image_type type, const char *rpath, image_t **_ if (found) { atomic_add(&found->ref_count, 1); *_image = found; + _kern_close(fd); KTRACE("rld: load_container(\"%s\"): already loaded after all", name); return B_OK;