]> git.kaiwu.me - njs.git/commit
Fixed realloc() failure handling.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 26 Sep 2017 11:19:49 +0000 (14:19 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 26 Sep 2017 11:19:49 +0000 (14:19 +0300)
commitb226f15a70bc4388049556e691559f26332782e1
tree371adf7cf092c1df5918fac052261d244d7fe812
parentbd40aea7d1d0f38a0746026d717b0a65fe52a8d8
Fixed realloc() failure handling.

According to POSIX, if realloc() fails to allocate a new chunk of memory
it returns NULL and does not free the original pointer.

Using a separate pointer in order to preserve the original one.
njs/njs.c