[asterisk-commits] russell: branch 1.4 r121078 - /branches/1.4/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jun 7 09:10:57 CDT 2008


Author: russell
Date: Sat Jun  7 09:10:56 2008
New Revision: 121078

URL: http://svn.digium.com/view/asterisk?view=rev&rev=121078
Log:
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)

Modified:
    branches/1.4/channels/chan_agent.c
    branches/1.4/channels/chan_local.c

Modified: branches/1.4/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_agent.c?view=diff&rev=121078&r1=121077&r2=121078
==============================================================================
--- branches/1.4/channels/chan_agent.c (original)
+++ branches/1.4/channels/chan_agent.c Sat Jun  7 09:10:56 2008
@@ -2759,7 +2759,6 @@
 		free(p);
 	}
 	AST_LIST_UNLOCK(&agents);
-	AST_LIST_HEAD_DESTROY(&agents);
 	return 0;
 }
 

Modified: branches/1.4/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_local.c?view=diff&rev=121078&r1=121077&r2=121078
==============================================================================
--- branches/1.4/channels/chan_local.c (original)
+++ branches/1.4/channels/chan_local.c Sat Jun  7 09:10:56 2008
@@ -756,7 +756,6 @@
 				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;




More information about the asterisk-commits mailing list