]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Manual clean up on error.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jul 2015 17:21:49 +0000 (13:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jul 2015 17:21:49 +0000 (13:21 -0400)
Talloc will do this for us, but it's good practice

src/main/xlat.c

index 7d1f8b0218304ea795d28a3a524f2f7e6d8bef2f..5e0865a3de29391a6dc373f9573a338884f613ef 100644 (file)
@@ -1334,6 +1334,8 @@ static ssize_t xlat_tokenize_expansion(TALLOC_CTX *ctx, char *fmt, xlat_exp_t **
                } else {
                        *error = fr_strerror();
                }
+
+               talloc_free(node);
                return slen - (p - fmt);
        }