Commit 12e40a5f authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-data: Plug parser leak on error

We would leak the parsing tree accumulated thus far on errors. Good
news is that it's potentially unlikely, bad news is that it's potentially
parent 18c7701f
......@@ -741,6 +741,7 @@ tracker_grammar_parser_apply (TrackerGrammarParser *parser,
if (!tracker_grammar_parser_read (parser, &state)) {
tracker_parser_state_propagate_error (&state, error);
tracker_node_tree_free (state.node_tree);
g_free (state.rule_states.rules);
return NULL;
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