Fix a file descriptor leak in procmime_decode_content().

Closes bug #3266 - procmime.c: FILE leak in specific circumstances
This commit is contained in:
Andrej Kacian 2017-07-12 18:48:48 +02:00
parent 611cfb75db
commit 6fedb78e7f

View file

@ -459,8 +459,8 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
if (SC_FPUTS(buf, outfp) == EOF)
err = TRUE;
}
procmime_fclose(tmpfp);
}
procmime_fclose(tmpfp);
} else if (encoding == ENC_X_UUENCODE) {
gchar outbuf[BUFFSIZE];
gint len;