Merged revisions 121078 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 7 Jun 2008 14:18:44 +0000 (14:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 7 Jun 2008 14:18:44 +0000 (14:18 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121078 | russell | 2008-06-07 09:10:56 -0500 (Sat, 07 Jun 2008) | 7 lines

Don't run LIST_HEAD_DESTROY on a STATIC list

(closes issue #12807)
Reported by: ys
Patches:
      chan_agent_local.diff uploaded by ys (license 281)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@121079 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c
channels/chan_local.c

index 8d22ead..8f05c20 100644 (file)
@@ -2426,7 +2426,6 @@ static int unload_module(void)
                ast_free(p);
        }
        AST_LIST_UNLOCK(&agents);
-       AST_LIST_HEAD_DESTROY(&agents);
        return 0;
 }
 
index 5d89cac..d531844 100644 (file)
@@ -812,7 +812,6 @@ static int unload_module(void)
                                ast_softhangup(p->owner, AST_SOFTHANGUP_APPUNLOAD);
                }
                AST_LIST_UNLOCK(&locals);
-               AST_LIST_HEAD_DESTROY(&locals);
        } else {
                ast_log(LOG_WARNING, "Unable to lock the monitor\n");
                return -1;