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:
Ingo Weinhold 2010-03-19 19:21:41 +00:00
parent c561bf792b
commit 4f339c2ce1

View File

@ -307,7 +307,6 @@ preload_image(char const* path)
image_t *image = NULL;
status_t status = load_image(path, B_LIBRARY_IMAGE, NULL, &image);
if (status < B_OK) {
rld_unlock();
KTRACE("rld: preload_image(\"%s\") failed to load container: %s", path,
strerror(status));
return status;