]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't run LIST_HEAD_DESTROY on a STATIC list
authorRussell Bryant <russell@russellbryant.com>
Sat, 7 Jun 2008 14:10:56 +0000 (14:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 7 Jun 2008 14:10:56 +0000 (14:10 +0000)
(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/branches/1.4@121078 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c
channels/chan_local.c

index 51633bece3ae1b2a86b81750e75276bcadbec40c..fe030261fbd961ef77e62f90a732734639ccd8de 100644 (file)
@@ -2759,7 +2759,6 @@ static int unload_module(void)
                free(p);
        }
        AST_LIST_UNLOCK(&agents);
-       AST_LIST_HEAD_DESTROY(&agents);
        return 0;
 }
 
index e0c74313719f9633d30a689cf73e45a59da9eb0b..8bfda47ec5e35992a4b96c682cc5f10b35e02139 100644 (file)
@@ -756,7 +756,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;