mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
chan_vpb.cc: Fix compiler warning Jenkins found.
Change-Id: I0ec7fd10d56d90d5a60b12b5a7d6807f265ac5e0
This commit is contained in:
@@ -2633,14 +2633,13 @@ static int unload_module(void)
|
|||||||
|
|
||||||
if (bridges) {
|
if (bridges) {
|
||||||
ast_mutex_lock(&bridge_lock);
|
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++) {
|
for (int i = 0; i < max_bridges; i++) {
|
||||||
ast_mutex_destroy(&bridges[i].lock);
|
ast_mutex_destroy(&bridges[i].lock);
|
||||||
ast_cond_destroy(&bridges[i].cond);
|
ast_cond_destroy(&bridges[i].cond);
|
||||||
}
|
}
|
||||||
ast_free(bridges);
|
ast_free(bridges);
|
||||||
|
bridges = NULL;
|
||||||
|
ast_mutex_unlock(&bridge_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_format_cap_destroy(vpb_tech.capabilities);
|
ast_format_cap_destroy(vpb_tech.capabilities);
|
||||||
|
|||||||
Reference in New Issue
Block a user