From: Matthias Clasen Date: Fri, 18 Nov 2022 04:21:19 +0000 (-0500) Subject: composetable: Fix a memory leak X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~92^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=95fc5109bbcfdb8c991d3c447916d6094e6d40bb;p=gtk4.git composetable: Fix a memory leak Pointed out by clang. --- 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; }