diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f9ba8696547d589fa7372ea460d5a3dc6140a244..063eff45bb2059ee53320c5d7bd71cb59e3877b9 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -586,6 +586,7 @@ static struct ast_vm_user *find_user_realtime(struct ast_vm_user *ivm, const cha
 					apply_option(retval, tmp->name, tmp->value);
 				tmp = tmp->next;
 			} 
+			ast_variables_destroy(var);
 		} else { 
 			if (!ivm) 
 				free(retval);