[svn-commits] branch bweschke/bug_6047 - r8033 /team/bweschke/bug_6047/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jan 12 14:02:50 CST 2006


Author: bweschke
Date: Thu Jan 12 14:02:48 2006
New Revision: 8033

URL: http://svn.digium.com/view/asterisk?rev=8033&view=rev
Log:
 Memory wrapper additions.


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

Modified: team/bweschke/bug_6047/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/bug_6047/channels/chan_sip.c?rev=8033&r1=8032&r2=8033&view=diff
==============================================================================
--- team/bweschke/bug_6047/channels/chan_sip.c (original)
+++ team/bweschke/bug_6047/channels/chan_sip.c Thu Jan 12 14:02:48 2006
@@ -6426,7 +6426,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 svn-commits mailing list