summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-07-01 17:25:31 -0500
committerRichard Mudgett <rmudgett@digium.com>2015-07-01 17:28:08 -0500
commit78a1f4aa4683702f5c5747b677a7944cb94866c3 (patch)
tree7bb7579ae491cebc16a27aeb0d56baf5c4a82ee5
parent69bfa518a02cbd69b364e5b0a500fc160e7b285d (diff)
chan_vpb.cc: Fix compiler warning Jenkins found.
Change-Id: I0ec7fd10d56d90d5a60b12b5a7d6807f265ac5e0
-rw-r--r--channels/chan_vpb.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc
index 181e50aee..f1ed39217 100644
--- a/channels/chan_vpb.cc
+++ b/channels/chan_vpb.cc
@@ -2626,14 +2626,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);