diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 7cfbf1b58e..a61af0ef05 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2357,7 +2357,7 @@ static struct ast_vm_user *find_user_realtime_imapuser(const char *imapuser) ast_variables_destroy(var); return vmu; } else { - free(vmu); + ast_free(vmu); return NULL; } }