and don't free a list on parse error. We rely instead on the
caller to free things.
If we do want to free the temporary lists while reading, we will
have to add a temporary context, OR walk down the temporary list
freeing each individual element.
The temporary lists are allocated on the stack, so we cannot
talloc_free() them.
void pairlist_free(PAIR_LIST_LIST *pl)
{
talloc_free(pl);
- pairlist_list_init(pl);
}
static fr_table_num_sorted_t const check_cmp_op_table[] = {
if (leading_spaces) {
ERROR_MARKER(&sbuff, "Entry does not begin with a user name");
fail:
- pairlist_free(list);
fclose(fp);
return -1;
}