[util] Fix memory leak

This commit is contained in:
Zero King 2019-07-26 15:43:51 +00:00 committed by Behdad Esfahbod
parent d3d99f8bb6
commit 6d53cda1ba
1 changed files with 1 additions and 0 deletions

View File

@ -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;