Index: apps/app_voicemail.c =================================================================== RCS file: /home/ipcontact/cvsroot/asterisk/apps/app_voicemail.c,v retrieving revision 1.3 diff -w -u -r1.3 app_voicemail.c --- apps/app_voicemail.c 29 Jun 2004 18:42:21 -0000 1.3 +++ apps/app_voicemail.c 8 Jul 2004 12:51:06 -0000 @@ -3864,13 +3864,14 @@ } 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, ast_app_has_voicemail(ext_context)); } + if (vmu) + free_user(vmu); + LOCAL_USER_REMOVE(u); return res;