]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check allocation
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Mar 2021 20:21:28 +0000 (20:21 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Mar 2021 20:21:28 +0000 (20:21 +0000)
src/lib/unlang/xlat_builtin.c

index 0197df9e6cdd9d14e5b44818c2f514a08e12d10a..22e49778a0006542349208fec035b06460b216f2 100644 (file)
@@ -350,7 +350,7 @@ xlat_t const *xlat_register(TALLOC_CTX *ctx, char const *name, xlat_func_t func,
        /*
         *      Doesn't exist.  Create it.
         */
-       c = talloc(ctx, xlat_t);
+       MEM(c = talloc(ctx, xlat_t));
        *c = (xlat_t){
                .name = talloc_typed_strdup(c, name),
                .func = {