summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mp.c
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
commitd9fddee1dbfc1f5d49c8f40386289d7188030952 (patch)
tree842a62b343ac33eba10e7a426a10b55bb1c46aed /src/nxt_mp.c
parent420395ee2e7cd464e157c49bea3d74f15bf25f30 (diff)
parent0d48fe73c4450901622373e35f6ff3a944ec13d6 (diff)
downloadunit-1.27.0-1.tar.gz
unit-1.27.0-1.tar.bz2
Merged with the default branch.1.27.0-1
Diffstat (limited to '')
-rw-r--r--src/nxt_mp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index 4eaa16d0..d0de2c0e 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -939,12 +939,12 @@ nxt_mp_chunk_free(nxt_mp_t *mp, nxt_mp_block_t *cluster, u_char *p)
page = cluster->pages;
do {
- if (page->size != 0) {
- return NULL;
- }
+ if (page->size != 0) {
+ return NULL;
+ }
- page++;
- n--;
+ page++;
+ n--;
} while (n != 0);
/* Free cluster. */
@@ -953,9 +953,9 @@ nxt_mp_chunk_free(nxt_mp_t *mp, nxt_mp_block_t *cluster, u_char *p)
page = cluster->pages;
do {
- nxt_queue_remove(&page->link);
- page++;
- n--;
+ nxt_queue_remove(&page->link);
+ page++;
+ n--;
} while (n != 0);
nxt_rbtree_delete(&mp->blocks, &cluster->node);