From 97d3363360370967de7da6df9804393e48324e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Fri, 12 Aug 2022 01:33:39 +0200 Subject: [PATCH] gtk/css: data_url_path fix leak in error path Fixes 7900032f3067166502978413ed2447c68dc83771 --- gtk/css/gtkcssdataurl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/css/gtkcssdataurl.c b/gtk/css/gtkcssdataurl.c index cc430378f2..6b9afb4834 100644 --- a/gtk/css/gtkcssdataurl.c +++ b/gtk/css/gtkcssdataurl.c @@ -165,9 +165,10 @@ gtk_css_data_url_parse (const char *url, g_propagate_error (error, local_error); g_free (charset); g_free (data); - return NULL; + g_free (mimetype); + return NULL; } - + bdata = data; bsize = written;