[asterisk-commits] branch bweschke/polycom_acd_functions - r8032 /team/bweschke/polycom_acd_func...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 12 13:58:39 CST 2006


Author: bweschke
Date: Thu Jan 12 13:58:38 2006
New Revision: 8032

URL: http://svn.digium.com/view/asterisk?rev=8032&view=rev
Log:
 More memory wrapper stuff.


Modified:
    team/bweschke/polycom_acd_functions/channels/chan_sip.c

Modified: team/bweschke/polycom_acd_functions/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/polycom_acd_functions/channels/chan_sip.c?rev=8032&r1=8031&r2=8032&view=diff
==============================================================================
--- team/bweschke/polycom_acd_functions/channels/chan_sip.c (original)
+++ team/bweschke/polycom_acd_functions/channels/chan_sip.c Thu Jan 12 13:58:38 2006
@@ -6430,7 +6430,7 @@
 	switch(state) {
 	case AST_EXTENSION_DEACTIVATED:	/* Retry after a while */
 	case AST_EXTENSION_REMOVED:	/* Extension is gone */
-		hmgrp = malloc(sizeof(struct hintmgrparam));
+		hmgrp = ast_calloc(1, sizeof(*hmgrp));
 		hmgrp->state = state;
 		hmgrp->context = context;
 		hmgrp->exten = exten;



More information about the asterisk-commits mailing list