commit | e8b19d7d7300366a1dd85273512657bbeab564ab | [log] [tgz] |
---|---|---|
author | Marc-André Lureau <marcandre.lureau@redhat.com> | Thu Aug 23 18:39:59 2018 +0200 |
committer | Markus Armbruster <armbru@redhat.com> | Fri Aug 24 20:26:37 2018 +0200 |
tree | 26227aef51ef6599071ab19151aafda25bf62fdd | |
parent | 7c1e1d5481fe8d2e757469179f9ccd14e8838ed1 [diff] |
json-parser: simplify and avoid JSONParserContext allocation parser_context_new/free() are only used from json_parser_parse(). We can fold the code there and avoid an allocation altogether. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20180719184111.5129-9-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180823164025.12553-33-armbru@redhat.com>