From cd0bbbf1ef3d8ff273dee80c1039157c1474715d Mon Sep 17 00:00:00 2001 From: Sanjeev Date: Wed, 8 Nov 2017 12:36:26 +0000 Subject: [PATCH] gvariant: Fix minor memory leak on error handling path (Commit message by Philip Withnall.) https://bugzilla.gnome.org/show_bug.cgi?id=760022 --- glib/gvariant-parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c index e4ba19270..3261bc1af 100644 --- a/glib/gvariant-parser.c +++ b/glib/gvariant-parser.c @@ -1724,6 +1724,7 @@ bytestring_parse (TokenStream *stream, parser_set_error (error, &ref, NULL, G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT, "unterminated string constant"); + g_free (str); g_free (token); return NULL; @@ -1734,6 +1735,7 @@ bytestring_parse (TokenStream *stream, parser_set_error (error, &ref, NULL, G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT, "unterminated string constant"); + g_free (str); g_free (token); return NULL; -- 2.11.4.GIT