From: Arran Cudbard-Bell Date: Wed, 7 Apr 2021 15:11:26 +0000 (+0100) Subject: See if explicitly freeing the gctx helps X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f02e501fef4247d8dbd9fb364f12818cdf800f;p=thirdparty%2Ffreeradius-server.git See if explicitly freeing the gctx helps --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 03760742593..50af376f7db 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -2626,11 +2626,15 @@ static int _command_ctx_free(command_file_ctx_t *cc) fr_perror("unit_test_attribute"); return -1; } + if (fr_dict_global_ctx_free(cc->test_gctx) < 0) { + fr_perror("unit_test_attribute"); + return -1; + } return 0; } static command_file_ctx_t *command_ctx_alloc(TALLOC_CTX *ctx, - command_config_t const *config, char const *path, char const *filename) + command_config_t const *config, char const *path, char const *filename) { command_file_ctx_t *cc;