Skip to content

Commit 988a936

Browse files
committed
fix mutex leak in free_all_mem
1 parent cfa5c45 commit 988a936

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/webui.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4346,8 +4346,10 @@ static void _webui_free_all_mem(void) {
43464346

43474347
// Makes sure we run this once
43484348
static bool freed = false;
4349-
if (freed)
4349+
if (freed) {
4350+
_webui_mutex_unlock(&_webui.mutex_mem);
43504351
return;
4352+
}
43514353
freed = true;
43524354

43534355
// Free all pointers in the list

0 commit comments

Comments
 (0)