commit c8ce3b6e75a4f38a214dd30dfb1dacff8780d00a
parent 395844e4f2ba98f828ba03abf842e70147797352
Author: wwp <subscript@free.fr>
Date: Thu, 30 Sep 2021 12:00:27 +0200
Fix CID 1491293: resource leak.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}
-