Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 90000) +++ apps/app_voicemail.c (working copy) @@ -6947,10 +6947,14 @@ goto out; if (!(vms.deleted = ast_calloc(vmu->maxmsg, sizeof(int)))) { - /* TODO: Handle memory allocation failure */ + ast_log(LOG_ERROR, "Could not allocate memory for deleted message storage!\n"); + cmd = ast_play_and_wait(chan, "an-error-has-occured"); + return -1; } if (!(vms.heard = ast_calloc(vmu->maxmsg, sizeof(int)))) { - /* TODO: Handle memory allocation failure */ + ast_log(LOG_ERROR, "Could not allocate memory for heard message storage!\n"); + cmd = ast_play_and_wait(chan, "an-error-has-occured"); + return -1; } /* Set language from config to override channel language */