commit b78affce7abf1a9cfb125b674d72aaa5c74f6c0b
parent f6c082178f7362a8711f12fd80db078096777c06
Author: wwp <subscript@free.fr>
Date: Tue, 5 Oct 2021 09:18:43 +0200
Fix VID 1491252: resource leak.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/news.c b/src/news.c
@@ -951,6 +951,7 @@ gint news_cancel_article(Folder * folder, MsgInfo * msginfo)
if ((tmpfp = claws_fopen(tmp, "wb")) == NULL) {
FILE_OP_ERROR(tmp, "claws_fopen");
+ g_free(tmp);
return -1;
}
if (change_file_mode_rw(tmpfp, tmp) < 0) {