Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 266147) +++ apps/app_voicemail.c (working copy) @@ -1716,7 +1716,7 @@ /* This will only work for new messages... */ ast_mutex_lock(&vms->lock); - header_content = mail_fetchheader (vms->mailstream, vms->msgArray[msgnum]); + header_content = ast_strdupa(mail_fetchheader(vms->mailstream, vms->msgArray[msgnum])); ast_mutex_unlock(&vms->lock); /* empty string means no valid header */ if (ast_strlen_zero(header_content)) {