Fix CID 1439996 and remove unnecessary comparison
authorRicardo Mones <ricardo@mones.org>
Sun, 7 Oct 2018 11:27:30 +0000 (13:27 +0200)
committerRicardo Mones <ricardo@mones.org>
Sun, 7 Oct 2018 11:27:30 +0000 (13:27 +0200)
src/procmime.c

index c47c7b6..02c49a0 100644 (file)
@@ -939,12 +939,10 @@ FILE *procmime_get_binary_content(MimeInfo *mimeinfo)
        }
 
        outfp = procmime_fopen(tmpfile, "w+");
-#endif
 
-       if (tmpfile != NULL) {
-               g_unlink(tmpfile);
-               g_free(tmpfile);
-       }
+       g_unlink(tmpfile);
+       g_free(tmpfile);
+#endif
 
        if (procmime_get_part_to_stream(outfp, mimeinfo) < 0) {
                return NULL;