From: Alan T. DeKok Date: Thu, 9 Jul 2015 17:21:49 +0000 (-0400) Subject: Manual clean up on error. X-Git-Tag: release_3_0_10~369 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=090b2ba0cfd79736a763ca33687fa7203d17d38e;p=thirdparty%2Ffreeradius-server.git Manual clean up on error. Talloc will do this for us, but it's good practice --- diff --git a/src/main/xlat.c b/src/main/xlat.c index 7d1f8b02183..5e0865a3de2 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -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); }