From: Arran Cudbard-Bell Date: Sat, 19 Sep 2020 00:55:55 +0000 (-0500) Subject: unit_test_attribute: Free the contents of cc->tmp_ctx after each command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fdfe9862793445cce0d50a2c7b1e771ec7927c4;p=thirdparty%2Ffreeradius-server.git unit_test_attribute: Free the contents of cc->tmp_ctx after each command --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 81226b4ff1c..36ea629b4d7 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -2458,6 +2458,9 @@ size_t process_line(command_result_t *result, command_file_ctx_t *cc, char *data DEBUG2("%s[%d]: --> %s", cc->filename, cc->lineno, fr_table_str_by_value(command_rcode_table, result->rcode, "")); } + + talloc_free_children(cc->tmp_ctx); + return data_used; }