preload_image(): Removed erroneous rld_unlock() in error case. Fixes #5599.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35919 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c561bf792b
commit
4f339c2ce1
@ -307,7 +307,6 @@ preload_image(char const* path)
|
|||||||
image_t *image = NULL;
|
image_t *image = NULL;
|
||||||
status_t status = load_image(path, B_LIBRARY_IMAGE, NULL, &image);
|
status_t status = load_image(path, B_LIBRARY_IMAGE, NULL, &image);
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
rld_unlock();
|
|
||||||
KTRACE("rld: preload_image(\"%s\") failed to load container: %s", path,
|
KTRACE("rld: preload_image(\"%s\") failed to load container: %s", path,
|
||||||
strerror(status));
|
strerror(status));
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
Reference in New Issue
Block a user