commit dd904f328b04c7344f595892e4230bc2c5ba5cf6
parent 292bd62855074f5b21f671fe1958c71e75e1a2bd
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;
}
-