From 95fc5109bbcfdb8c991d3c447916d6094e6d40bb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 17 Nov 2022 23:21:19 -0500 Subject: [PATCH] composetable: Fix a memory leak Pointed out by clang. --- gtk/gtkcomposetable.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index 0a4f8fd750..37a70ec6a6 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -963,6 +963,7 @@ parser_get_compose_table (GtkComposeParser *parser) if (char_data->len >= 0x8000) { g_warning ("GTK can't handle compose tables this large (%s)", parser->compose_file ? parser->compose_file : ""); + g_free (data); g_string_free (char_data, TRUE); return NULL; } -- 2.30.2