Skip to content

Commit fdda71c

Browse files
authored
[dylink] Fix missing unlock in emscripten_dlopen() (#26935)
The global write lock was acquired but never released if the requested library was already loaded.
1 parent 26dc578 commit fdda71c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/lib/libc/dynlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ void emscripten_dlopen(const char* filename, int flags, void* user_data,
575575
filename = find_dylib(buf, filename, sizeof buf);
576576
struct dso* p = find_existing(filename);
577577
if (p) {
578+
do_write_unlock();
578579
onsuccess(user_data, p);
579580
return;
580581
}

0 commit comments

Comments
 (0)