projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12ace3
)
chan_vpb.cc: Fix compiler warning Jenkins found.
author
Richard Mudgett
<rmudgett@digium.com>
Wed, 1 Jul 2015 22:25:31 +0000
(17:25 -0500)
committer
Richard Mudgett
<rmudgett@digium.com>
Wed, 1 Jul 2015 22:25:31 +0000
(17:25 -0500)
Change-Id: I0ec7fd10d56d90d5a60b12b5a7d6807f265ac5e0
channels/chan_vpb.cc
patch
|
blob
|
history
diff --git
a/channels/chan_vpb.cc
b/channels/chan_vpb.cc
index
16a66b9
..
7cdcf30
100644
(file)
--- a/
channels/chan_vpb.cc
+++ b/
channels/chan_vpb.cc
@@
-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);