mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-02 09:31:45 +00:00
Fix crash in r_th_free (NULL);
This commit is contained in:
parent
792956c67d
commit
c49fe88eea
@ -125,6 +125,9 @@ R_API int r_th_wait_async(struct r_th_t *th) {
|
||||
}
|
||||
|
||||
R_API void *r_th_free(struct r_th_t *th) {
|
||||
if (!th) {
|
||||
return NULL;
|
||||
}
|
||||
r_th_kill (th, true);
|
||||
#if __WINDOWS__ && !defined(__CYGWIN__)
|
||||
CloseHandle (th->tid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user