[Asterisk-cvs] asterisk/apps app_voicemail.c,1.130,1.131

markster at lists.digium.com markster at lists.digium.com
Thu Jul 8 12:38:29 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv5707/apps

Modified Files:
	app_voicemail.c 
Log Message:
Don't free until after externnotify (bug #1993)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- app_voicemail.c	8 Jul 2004 15:03:48 -0000	1.130
+++ app_voicemail.c	8 Jul 2004 16:24:16 -0000	1.131
@@ -3872,13 +3872,13 @@
 	}
 	if (vmu)
 		close_mailbox(&vms, vmu);
-	if (vmu)
-		free_user(vmu);
 	if (valid) {
 		snprintf(ext_context, sizeof(ext_context), "%s@%s", vms.username, vmu->context);
 		manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", ext_context, ast_app_has_voicemail(ext_context));
 		run_externnotify(chan->context, ext_context);
 	}
+	if (vmu)
+		free_user(vmu);
 	LOCAL_USER_REMOVE(u);
 
 	return res;




More information about the svn-commits mailing list