diff options
author | antirez <antirez@gmail.com> | 2017-04-21 16:27:38 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-04-21 16:27:38 +0200 |
commit | 238cebdd5eb0fd0d8f2db87d895a007bc492dcdb (patch) | |
tree | 9fea6c8d9c39acdee068bfd813ab7a91898b8283 /deps/jemalloc/test/integration/xallocx.c | |
parent | 3773c06d281bd50717280df171ba6dcf44a4116a (diff) | |
download | redis-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