summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-12-05 22:53:02 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-12-06 06:33:23 -0500
commit7e7f336d3b5abc076b35f6ad65f17f5a0ca243e0 (patch)
tree245333910895e7b99adda5281fd3f442d7064d29
parent63718feabe38dd29f88987493a47afb9f93e2b76 (diff)
downloadpango-7e7f336d3b5abc076b35f6ad65f17f5a0ca243e0.tar.gz
Plug a memory leak in the json parser
-rw-r--r--pango/json/gtkjsonparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/json/gtkjsonparser.c b/pango/json/gtkjsonparser.c
index e82d974d..5433d535 100644
--- a/pango/json/gtkjsonparser.c
+++ b/pango/json/gtkjsonparser.c
@@ -996,6 +996,8 @@ gtk_json_parser_free (GtkJsonParser *self)
if (self->blocks != self->blocks_preallocated)
g_free (self->blocks);
+ g_clear_error (&self->error);
+
g_slice_free (GtkJsonParser, self);
}