[asterisk-commits] mmichelson: trunk r90670 - /trunk/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 3 15:24:57 CST 2007


Author: mmichelson
Date: Mon Dec  3 15:24:56 2007
New Revision: 90670

URL: http://svn.digium.com/view/asterisk?view=rev&rev=90670
Log:
Replacing some calls to free() with ast_free().

(closes issue #11448, reported and patched by jaroth)


Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=90670&r1=90669&r2=90670
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Mon Dec  3 15:24:56 2007
@@ -7356,9 +7356,9 @@
 	if (vmu)
 		free_user(vmu);
 	if (vms.deleted)
-		free(vms.deleted);
+		ast_free(vms.deleted);
 	if (vms.heard)
-		free(vms.heard);
+		ast_free(vms.heard);
 
 	return res;
 }
@@ -7803,7 +7803,7 @@
 
 static void mwi_sub_destroy(struct mwi_sub *mwi_sub)
 {
-	free(mwi_sub);
+	ast_free(mwi_sub);
 }
 
 static void mwi_unsub_event_cb(const struct ast_event *event, void *userdata)




More information about the asterisk-commits mailing list