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:
parent
05fd6d79fe
commit
b2568a30b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user