summaryrefslogtreecommitdiff
path: root/deps/jemalloc/test/integration/xallocx.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-04-21 16:27:38 +0200
committerantirez <antirez@gmail.com>2017-04-21 16:27:38 +0200
commit238cebdd5eb0fd0d8f2db87d895a007bc492dcdb (patch)
tree9fea6c8d9c39acdee068bfd813ab7a91898b8283 /deps/jemalloc/test/integration/xallocx.c
parent3773c06d281bd50717280df171ba6dcf44a4116a (diff)
downloadredis-238cebdd5eb0fd0d8f2db87d895a007bc492dcdb.tar.gz
Check event loop creation return value. Fix #3951.
Normally we never check for OOM conditions inside Redis since the allocator will always return a pointer or abort the program on OOM conditons. However we cannot have control on epool_create(), that may fail for kernel OOM (according to the manual page) even if all the parameters are correct, so the function aeCreateEventLoop() may indeed return NULL and this condition must be checked.
Diffstat (limited to 'deps/jemalloc/test/integration/xallocx.c')
0 files changed, 0 insertions, 0 deletions