提交 06933cc7 编写于 作者: R Rich Felker

don't leave the lock held on dlopen failure..

上级 97507bde
......@@ -509,7 +509,7 @@ void *dlopen(const char *file, int mode)
}
p = load_library(file);
if (!p) return 0;
if (!p) goto end;
/* First load handling */
if (!p->deps) {
......@@ -531,8 +531,8 @@ void *dlopen(const char *file, int mode)
p->global = 1;
}
end:
pthread_rwlock_unlock(&lock);
return p;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册