[Commits] [SCM] claws branch, master, updated. 3.18.0-216-gc8ce3b6e7

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 12:00:48 CEST 2021


The branch, master has been updated
       via  c8ce3b6e75a4f38a214dd30dfb1dacff8780d00a (commit)
      from  395844e4f2ba98f828ba03abf842e70147797352 (commit)

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


- Log -----------------------------------------------------------------
commit c8ce3b6e75a4f38a214dd30dfb1dacff8780d00a
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 12:00:27 2021 +0200

    Fix CID 1491293: resource leak.

diff --git a/src/partial_download.c b/src/partial_download.c
index 8ca3bbdb8..49dc37530 100644
--- a/src/partial_download.c
+++ b/src/partial_download.c
@@ -193,6 +193,7 @@ static int partial_uidl_mark_mail(MsgInfo *msginfo, int download)
 	if ((fpnew = claws_fopen(pathnew, "wb")) == NULL) {
 		FILE_OP_ERROR(pathnew, "claws_fopen");
 		claws_fclose(fp);
+		g_free(path);
 		g_free(pathnew);
 		goto bail;
 	}
@@ -435,4 +436,3 @@ gchar *partial_get_filename(const gchar *server, const gchar *login,
 	
 	return result;
 }
-

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list