From 1413ca41babec45260c93b0f48dee491501d4587 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 30 Jul 2016 20:03:44 -0300 Subject: Close stream if ReportContext couldn't be created --- shell/report.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell') diff --git a/shell/report.c b/shell/report.c index 241bca67..0259799e 100644 --- a/shell/report.c +++ b/shell/report.c @@ -615,6 +615,7 @@ static gboolean report_generate(ReportDialog * rd) if (!create_context) { g_warning(_("Cannot create ReportContext. Programming bug?")); g_free(file); + fclose(stream); return FALSE; } -- cgit v1.2.3