[Commits] [SCM] claws branch, master, updated. 3.15.0-104-g6fedb78

ticho at claws-mail.org ticho at claws-mail.org
Wed Jul 12 18:49:24 CEST 2017


The branch, master has been updated
       via  6fedb78e7f7928e72d6e7c7919ac2be752c789d7 (commit)
      from  611cfb75db5d5d6da3bc65bd110beae566fcf636 (commit)

Summary of changes:
 src/procmime.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 6fedb78e7f7928e72d6e7c7919ac2be752c789d7
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Jul 12 18:48:48 2017 +0200

    Fix a file descriptor leak in procmime_decode_content().
    
    Closes bug #3266 - procmime.c: FILE leak in specific circumstances

diff --git a/src/procmime.c b/src/procmime.c
index e41394d..f62487c 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list