Skip to content

Commit 5c8ccb4

Browse files
committed
test: helper.c call cache.impl->destroy at teardown
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 1949fc9 commit 5c8ccb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/helper.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static request_rec *oidc_test_request_init(apr_pool_t *pool) {
113113
cfg->cache.shm_entry_size_max = 16384 + 255 + 17;
114114
cfg->cache.encrypt = 1;
115115
if (cfg->cache.impl->post_config(request->server) != OK) {
116-
printf("cfg->cache.impl->post_config failed!\n");
116+
fprintf(stderr, "cfg->cache.impl->post_config failed!\n");
117117
exit(-1);
118118
}
119119

@@ -129,6 +129,7 @@ void oidc_test_setup(void) {
129129

130130
void oidc_test_teardown(void) {
131131
EVP_cleanup();
132+
oidc_test_cfg_get()->cache.impl->destroy(request->server);
132133
apr_pool_destroy(pool);
133134
apr_terminate();
134135
}

0 commit comments

Comments
 (0)