chan_vpb.cc: Fix compiler warning Jenkins found.
Change-Id: I0ec7fd10d56d90d5a60b12b5a7d6807f265ac5e0
This commit is contained in:
parent
c12ace3ab3
commit
41610df8d5
|
@ -2628,14 +2628,13 @@ static int unload_module(void)
|
|||
|
||||
if (bridges) {
|
||||
ast_mutex_lock(&bridge_lock);
|
||||
memset(bridges, 0, sizeof bridges);
|
||||
ast_mutex_unlock(&bridge_lock);
|
||||
ast_mutex_destroy(&bridge_lock);
|
||||
for (int i = 0; i < max_bridges; i++) {
|
||||
ast_mutex_destroy(&bridges[i].lock);
|
||||
ast_cond_destroy(&bridges[i].cond);
|
||||
}
|
||||
ast_free(bridges);
|
||||
bridges = NULL;
|
||||
ast_mutex_unlock(&bridge_lock);
|
||||
}
|
||||
|
||||
ao2_cleanup(vpb_tech.capabilities);
|
||||
|
|
Loading…
Reference in New Issue