Added basic port error handler.

This commit is contained in:
Max Romanov
2017-08-02 13:36:29 +03:00
parent f23f985899
commit b150f07e80
8 changed files with 81 additions and 40 deletions

View File

@@ -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--;