]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
Don't cast void pointer return value of malloc() et al.
[nmh] / uip / mhfixmsg.c
index 6a7a048ea8f4514ac1f1525f21cf12a8ffcaa5b5..486c7cc4d88541cbdda12122d6e008ae1fc47211 100644 (file)
@@ -9,6 +9,7 @@
 #include <h/fmt_scan.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
+#include "h/done.h"
 #include <h/utils.h>
 #include <h/signals.h>
 #include "sbr/m_maildir.h"
@@ -2292,6 +2293,7 @@ strip_crs (CT ct, int *message_mods) {
                     inform("unable to write temporary file %s, continuing...",
                               stripped_content_file);
                     (void) m_unlink (stripped_content_file);
+                    free(stripped_content_file);
                     status = NOTOK;
                 } else {
                     /* Replace the decoded file with the converted one. */