mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
If aeApiCreate() fails, there's probably not much one can do, but in the name of consistency...
This commit is contained in:
parent
b362c111da
commit
caa63a3821
2
src/ae.c
2
src/ae.c
@ -74,6 +74,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) {
|
|||||||
eventLoop->maxfd = -1;
|
eventLoop->maxfd = -1;
|
||||||
eventLoop->beforesleep = NULL;
|
eventLoop->beforesleep = NULL;
|
||||||
if (aeApiCreate(eventLoop) == -1) {
|
if (aeApiCreate(eventLoop) == -1) {
|
||||||
|
zfree(eventLoop->events);
|
||||||
|
zfree(eventLoop->fired);
|
||||||
zfree(eventLoop);
|
zfree(eventLoop);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user