From: Alan T. DeKok Date: Tue, 26 Sep 2023 20:22:30 +0000 (-0400) Subject: Don't free node on error. The error label already does this X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bbfeb51a9486d6f958fe07e721bf005258480bd;p=thirdparty%2Ffreeradius-server.git Don't free node on error. The error label already does this --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index ca52b8ed028..bf21e11c6d6 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -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; }