- Fix memory leak - After cwc_running is set to 0 in capmt_destroy, capmt and capmt->id was not free'd

This commit is contained in:
Benny Morgan 2013-06-30 21:35:43 +02:00
parent edd4816065
commit 19b39e4159

View file

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