mirror of https://github.com/flysand7/ciabatta.git
Fix memory leak on create thread
This commit is contained in:
parent
47e185a1aa
commit
f1b019f2ed
|
@ -61,6 +61,7 @@ typedef struct UserClosure {
|
||||||
static DWORD _thread_call_user(void* arg) {
|
static DWORD _thread_call_user(void* arg) {
|
||||||
UserClosure info = *((UserClosure*) arg);
|
UserClosure info = *((UserClosure*) arg);
|
||||||
int result = info.func(info.arg);
|
int result = info.func(info.arg);
|
||||||
|
free(arg);
|
||||||
return (DWORD) result;
|
return (DWORD) result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue