diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-25 19:01:09 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-25 19:01:09 +0000 |
commit | 2b261c5f3a68cc4cc02c185255101f43729c67e6 (patch) | |
tree | d6f96130173ad33c0991bf57f1849267d8033c69 /channels | |
parent | 5b4afe3c292f7770f1e5453407eca1fd2624fcb0 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@8675 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_features.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c index 32deae12f..97bbdf8ed 100644 --- a/channels/chan_features.c +++ b/channels/chan_features.c @@ -568,17 +568,17 @@ int reload() int unload_module() { - struct feature_pvt *p; + struct feature_pvt *p, *prev; /* First, take us out of the channel loop */ ast_cli_unregister(&cli_show_features); ast_channel_unregister(&features_tech); if (!ast_mutex_lock(&featurelock)) { /* Hangup all interfaces if they have an owner */ - p = features; - while(p) { + for (p = features; p; p = p->next) { + prev = p; if (p->owner) ast_softhangup(p->owner, AST_SOFTHANGUP_APPUNLOAD); - p = p->next; + free(prev); } features = NULL; ast_mutex_unlock(&featurelock); |