]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
See if explicitly freeing the gctx helps
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Apr 2021 15:11:26 +0000 (16:11 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Apr 2021 15:11:41 +0000 (16:11 +0100)
src/bin/unit_test_attribute.c

index 037607425936d9855b587b8f4321d81f2961e622..50af376f7db9d07f7051c0ccedeac42620b8a3cc 100644 (file)
@@ -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;