]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we should free node before exiting
authorAlan T. DeKok <aland@freeradius.org>
Thu, 30 Jan 2025 15:46:46 +0000 (10:46 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 30 Jan 2025 15:46:46 +0000 (10:46 -0500)
src/lib/unlang/xlat_expr.c

index 739946831218dc1e96ada379c5a1903b7aced8e0..236fe9d4a12a5d6097e5ea35c977c18009553c1e 100644 (file)
@@ -2587,6 +2587,7 @@ static fr_slen_t tokenize_field(xlat_exp_head_t *head, xlat_exp_t **out, fr_sbuf
        slen = tmpl_afrom_substr(node, &vpt, &our_in, quote, p_rules, &our_t_rules);
        if ((slen < 0) || ((slen == 0) && (quote == T_BARE_WORD))) {
        error:
+               talloc_free(node);
                FR_SBUFF_ERROR_RETURN(&our_in);
        }