Use p_new instead of xmalloc()
[apps/madmutt.git] / editmsg.c
index c77cbf9..6d848e3 100644 (file)
--- a/editmsg.c
+++ b/editmsg.c
@@ -165,8 +165,7 @@ static int edit_one_message (CONTEXT * ctx, HEADER * cur)
   mx_close_mailbox (&tmpctx, NULL);
 
 bail:
-  if (fp)
-    fclose (fp);
+  m_fclose(&fp);
 
   if (rc >= 0)
     unlink (tmp);