[config] fix mem leaks in config parser

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent 875995dae5
commit 4056bd1a43
  1. 2
      src/main/config_parser.rl

@ -1127,6 +1127,7 @@ error:
}
li_action_append_inplace(list, a);
li_action_release(ctx->srv, a);
return TRUE;
}
@ -1818,6 +1819,7 @@ static gboolean p_condition(liAction *list, liConfigTokenizerContext *ctx, GErro
{
liAction *a = cond_walk(ctx->srv, tree, positive, negative);
li_action_append_inplace(list, a);
li_action_release(ctx->srv, a);
}
return TRUE;

Loading…
Cancel
Save