sudoers_parse_ldif: do not free parse_tree before using

The user is expected to pass in an initialized and empty parse_tree
so there is no need to free it first.
This commit is contained in:
Todd C. Miller
2023-08-18 12:22:43 -06:00
parent 902453a829
commit a712af5a26

View File

@@ -582,9 +582,6 @@ sudoers_parse_ldif(struct sudoers_parse_tree *parse_tree,
int errors = 0;
debug_decl(sudoers_parse_ldif, SUDOERS_DEBUG_UTIL);
/* Free old contents of the parse tree (if any). */
free_parse_tree(parse_tree);
/*
* We cache user, group and host lists to make it eay to detect when there
* are identical lists (simple pointer compare). This makes it possible