From 6f4251c74f77993393f85032e719115b2167d57b Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 20 Jan 2022 10:48:07 -0500 Subject: [PATCH] one more attempt to shut up clang --- src/lib/unlang/xlat_expr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index e661c9df7f..b53ea17848 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -1132,6 +1132,14 @@ redo: talloc_free(lhs); FR_SBUFF_ERROR_RETURN_ADJ(&in, slen); } + +#ifdef __clang_analyzer__ + if (!rhs) { + talloc_free(lhs); + FR_SBUFF_ERROR_RETURN(&in); + } +#endif + fr_assert(rhs != NULL); //alloc_func: -- 2.47.2