- Fix memory leak - After cwc_running is set to 0 in capmt_destroy, capmt and capmt->id was not free'd
(cherry picked from commit 19b39e4159
)
This commit is contained in:
parent
1d0e7ca97f
commit
34352d67e5
1 changed files with 3 additions and 0 deletions
|
@ -665,6 +665,9 @@ capmt_thread(void *aux)
|
|||
pthread_mutex_unlock(&global_lock);
|
||||
}
|
||||
|
||||
free(capmt->capmt_id);
|
||||
free(capmt);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue