summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-11-01 08:56:26 +0100
committerMaria Matejka <mq@ucw.cz>2022-11-01 16:38:24 +0100
commit37b644413723670928f6b54f2abe0c852eb0b652 (patch)
treed8e8023f23803d0117cf02f7ea1922d5d8e5f531 /filter
parent5aebce5e0cc59c4c8459ab92a201df5868f46e7a (diff)
Moved config-related allocations to config_pool and showing its size in memory usage
Diffstat (limited to 'filter')
-rw-r--r--filter/f-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/f-util.c b/filter/f-util.c
index fdb314b5..d814493e 100644
--- a/filter/f-util.c
+++ b/filter/f-util.c
@@ -128,11 +128,11 @@ ca_lookup(pool *p, const char *name, int f_type)
static int inited = 0;
if (!inited) {
- idm_init(&ca_idm, &root_pool, 8);
- HASH_INIT(ca_hash, &root_pool, CA_ORDER);
+ idm_init(&ca_idm, config_pool, 8);
+ HASH_INIT(ca_hash, config_pool, CA_ORDER);
ca_storage_max = 256;
- ca_storage = mb_allocz(&root_pool, sizeof(struct ca_storage *) * ca_storage_max);
+ ca_storage = mb_allocz(config_pool, sizeof(struct ca_storage *) * ca_storage_max);
inited++;
}
@@ -152,7 +152,7 @@ ca_lookup(pool *p, const char *name, int f_type)
ca_storage = mb_realloc(ca_storage, sizeof(struct ca_storage *) * ca_storage_max * 2);
}
- cas = mb_allocz(&root_pool, sizeof(struct ca_storage) + strlen(name) + 1);
+ cas = mb_allocz(config_pool, sizeof(struct ca_storage) + strlen(name) + 1);
cas->fda = f_new_dynamic_attr(ea_type, f_type, EA_CUSTOM(id));
cas->uc = 1;