- 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:
Benny Morgan 2013-06-30 21:35:43 +02:00 committed by Adam Sutton
parent 1d0e7ca97f
commit 34352d67e5

View file

@ -665,6 +665,9 @@ capmt_thread(void *aux)
pthread_mutex_unlock(&global_lock);
}
free(capmt->capmt_id);
free(capmt);
return NULL;
}