]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't free node on error. The error label already does this
authorAlan T. DeKok <aland@freeradius.org>
Tue, 26 Sep 2023 20:22:30 +0000 (16:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 26 Sep 2023 20:22:36 +0000 (16:22 -0400)
src/lib/unlang/xlat_tokenize.c

index ca52b8ed028f586e28e6089ef198a4b3e8e7ec41..bf21e11c6d6f2c6605b058c8b71d3c7589bfc646 100644 (file)
@@ -175,7 +175,6 @@ static inline int xlat_tokenize_alternation(xlat_exp_head_t *head, fr_sbuff_t *i
                                 true, &xlat_expansion_rules, t_rules) < 0) goto error;
 
        if (!xlat_exp_head(node->alternate[1])) {
-               talloc_free(node);
                fr_strerror_const("Empty expansion is invalid");
                goto error;
        }