Index: funcs/func_math.c =================================================================== --- funcs/func_math.c (revision 398365) +++ funcs/func_math.c (working copy) @@ -503,6 +503,9 @@ res = AST_TEST_FAIL; } + ast_free(expr); + ast_free(result); + return res; } #endif