]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check alloc
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 29 Apr 2025 23:10:48 +0000 (19:10 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Apr 2025 20:22:48 +0000 (16:22 -0400)
src/lib/unlang/compile.c

index 69f99ebf15fcae61e8b2f420a1986f18cdaed9f0..d135984998415a954c49504a0852185aeaee2642 100644 (file)
@@ -3548,8 +3548,7 @@ static unlang_t *compile_tmpl(unlang_t *parent, unlang_compile_t *unlang_ctx, CO
        char const      *p = cf_pair_attr(cp);
        tmpl_t          *vpt;
 
-       ut = talloc_zero(parent, unlang_tmpl_t);
-
+       MEM(ut = talloc_zero(parent, unlang_tmpl_t));
        c = unlang_tmpl_to_generic(ut);
        c->parent = parent;
        c->next = NULL;