From 6d53cda1baf130853e5725fe8fea1d1c5f766a79 Mon Sep 17 00:00:00 2001 From: Zero King Date: Fri, 26 Jul 2019 15:43:51 +0000 Subject: [PATCH] [util] Fix memory leak --- util/options.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/util/options.cc b/util/options.cc index 42dfa956a..f71a5a34d 100644 --- a/util/options.cc +++ b/util/options.cc @@ -370,6 +370,7 @@ parse_unicodes (const char *name G_GNUC_UNUSED, hb_codepoint_t u = strtoul (s, &p, 16); if (errno || s == p) { + g_string_free (gs, TRUE); g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "Failed parsing Unicode values at: '%s'", s); return false;