Free backend management resource after close all sessions

This commit is contained in:
vemax78
2013-11-24 23:00:57 +01:00
parent e320bef6a7
commit d303f057f0
3 changed files with 7 additions and 1 deletions

View File

@ -665,8 +665,10 @@ void ac_backend_stop(void) {
/* Wait close thread */
pthread_join(g_ac_backend.threadid, &dummy);
}
/* */
/* */
void ac_backend_free(void) {
capwap_event_destroy(&g_ac_backend.wait);
capwap_lock_destroy(&g_ac_backend.lock);
capwap_lock_destroy(&g_ac_backend.backendlock);