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 /lib/resource.c | |
parent | b3f805ce29487f790090fcf31096f5a7cf1d585d (diff) |
Resource pool closing has its dedicated function
Diffstat (limited to 'lib/resource.c')
-rw-r--r-- | lib/resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/resource.c b/lib/resource.c index 94b8d019..0006bc8d 100644 --- a/lib/resource.c +++ b/lib/resource.c @@ -298,7 +298,7 @@ void tmp_flush(void) { lp_flush(tmp_linpool); - rfree(tmp_res.pool); + rp_free(tmp_res.pool); tmp_res.pool = rp_new(tmp_res.parent, "TMP"); } @@ -449,7 +449,7 @@ mb_free(void *m) return; struct mblock *b = SKIP_BACK(struct mblock, data, m); - rfree(b); + rfree(&b->r); } |