app_voicemail: Temp message left after review/hangup with ODBC/IMAP backend
[asterisk/asterisk.git] / apps / app_voicemail.c
index 6311263..86724f3 100644 (file)
@@ -15182,6 +15182,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
                                } else {
                                        ast_play_and_wait(chan, "vm-deleted");
                                        DELETE(tempfile, -1, tempfile, vmu);
+                                       DISPOSE(tempfile, -1);
                                        cmd = '0';
                                }
                        }