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
This commit is contained in:
@@ -1297,6 +1297,7 @@ load_container(char const *name, image_type type, const char *rpath, image_t **_
|
|||||||
if (found) {
|
if (found) {
|
||||||
atomic_add(&found->ref_count, 1);
|
atomic_add(&found->ref_count, 1);
|
||||||
*_image = found;
|
*_image = found;
|
||||||
|
_kern_close(fd);
|
||||||
KTRACE("rld: load_container(\"%s\"): already loaded after all",
|
KTRACE("rld: load_container(\"%s\"): already loaded after all",
|
||||||
name);
|
name);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user