Fix memory leak on create thread

This commit is contained in:
bumbread 2023-03-18 03:09:35 +11:00
parent 47e185a1aa
commit f1b019f2ed
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ typedef struct UserClosure {
static DWORD _thread_call_user(void* arg) {
UserClosure info = *((UserClosure*) arg);
int result = info.func(info.arg);
free(arg);
return (DWORD) result;
}