diff options
author | Maria Matejka <mq@ucw.cz> | 2023-04-20 21:08:38 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-22 20:49:58 +0200 |
commit | 1141ce4e2d924f29e6e31ccf5e325f870c8895dd (patch) | |
tree | 4d985af0d0008ca3468c614f157ef92f50b7df49 /nest | |
parent | b3f805ce29487f790090fcf31096f5a7cf1d585d (diff) |
Resource pool closing has its dedicated function
Diffstat (limited to 'nest')
-rw-r--r-- | nest/cli.c | 2 | ||||
-rw-r--r-- | nest/proto.c | 2 | ||||
-rw-r--r-- | nest/rt-show.c | 2 | ||||
-rw-r--r-- | nest/rt-table.c | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -421,7 +421,7 @@ cli_free(cli *c) c->sock = NULL; } else - rfree(c->pool); + rp_free(c->pool); } /** diff --git a/nest/proto.c b/nest/proto.c index 280585dd..1b25dfe9 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -1116,7 +1116,7 @@ proto_cleanup(struct proto *p) { CALL(p->proto->cleanup, p); - rfree(p->pool); + rp_free(p->pool); p->pool = NULL; p->active = 0; diff --git a/nest/rt-show.c b/nest/rt-show.c index a5c7dc8f..eacd4e31 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -227,7 +227,7 @@ rt_show_export_stopped_cleanup(struct rt_export_request *req) req->hook = NULL; /* And free the CLI (deferred) */ - rfree(d->cli->pool); + rp_free(d->cli->pool); } static int diff --git a/nest/rt-table.c b/nest/rt-table.c index b18727b1..cec13318 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2027,7 +2027,7 @@ rt_export_stopped(struct rt_export_hook *hook) rem_node(&hook->n); /* Free the hook itself together with its pool */ - rfree(hook->pool); + rp_free(hook->pool); } static inline void |