Fix CID 1491293: resource leak.
authorwwp <subscript@free.fr>
Thu, 30 Sep 2021 10:00:27 +0000 (12:00 +0200)
committerwwp <subscript@free.fr>
Thu, 30 Sep 2021 10:00:27 +0000 (12:00 +0200)
src/partial_download.c

index 8ca3bbdb8b36b698004fd2ab6af7801b0e9b4cc8..49dc37530199648a256103bc97ae8aad02670272 100644 (file)
@@ -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;
 }
-