Commit 59fc50a8 authored by Rémi Duraffort's avatar Rémi Duraffort

cmml: fix memleak (#2345)

parent a3a59eb0
...@@ -260,7 +260,11 @@ xtag_slurp_quoted (XTagParser * parser) ...@@ -260,7 +260,11 @@ xtag_slurp_quoted (XTagParser * parser)
ret[xi] = '\0'; ret[xi] = '\0';
parser->start = &s[xi]; parser->start = &s[xi];
if (!xtag_assert_and_pass (parser, quote)) return NULL; if (!xtag_assert_and_pass (parser, quote))
{
free( ret );
return NULL;
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment