diff --git a/System Abstraction/win32/cdb_thread.c b/System Abstraction/win32/cdb_thread.c index f60acf2..13c4d4a 100644 --- a/System Abstraction/win32/cdb_thread.c +++ b/System Abstraction/win32/cdb_thread.c @@ -19,6 +19,7 @@ sus_Bool sus_threadNew(sus_threadProc proc, void * arg){ ti->proc = proc; ti->args = arg; if(CreateThread(NULL, 0, threadProc, ti, 0, NULL) == NULL){ + sus_heapFree(ti); return sus_False; }else{ return sus_True;