summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_mp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index 40d12be0..8c2da262 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -952,7 +952,9 @@ nxt_mp_retain(nxt_mp_t *mp, size_t size)
uint32_t
nxt_mp_release(nxt_mp_t *mp, void *p)
{
- nxt_mp_free(mp, p);
+ if (nxt_fast_path(p != NULL)) {
+ nxt_mp_free(mp, p);
+ }
mp->retain--;