[svn-commits] branch bweschke/findme_followme r31838 - /team/bweschke/findme_followme/apps/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sat Jun 3 14:52:18 MST 2006


Author: bweschke
Date: Sat Jun  3 16:52:18 2006
New Revision: 31838

URL: http://svn.digium.com/view/asterisk?rev=31838&view=rev
Log:
 calloc the structure before we try to init it!


Modified:
    team/bweschke/findme_followme/apps/app_followme.c

Modified: team/bweschke/findme_followme/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/findme_followme/apps/app_followme.c?rev=31838&r1=31837&r2=31838&view=diff
==============================================================================
--- team/bweschke/findme_followme/apps/app_followme.c (original)
+++ team/bweschke/findme_followme/apps/app_followme.c Sat Jun  3 16:52:18 2006
@@ -661,7 +661,8 @@
 	struct findme_user *headuser;
 	struct findme_user_listptr *findme_user_list;
 	int status;
-	
+
+	ast_calloc(1, sizeof(*findme_user_list));		
 	AST_LIST_HEAD_INIT_NOLOCK(findme_user_list);
 
 	tpargs = (struct fm_args *)args;
@@ -783,12 +784,15 @@
 				break;
 
 	}
+	free(findme_user_list);
 	if (!winner) 
 		tpargs->status = 1;
 	else {
 		tpargs->status = 100;
 		tpargs->outbound = winner;
 	}
+
+	
 	return;
 		
 }



More information about the svn-commits mailing list