@oranagra

I have doubt about _EL_CLEANUP(),please help me,why it is safe to call multiple times?accord to my understand,it run like this:

Redis why _EL_CLEANUP(ac) is safe to  call multiple times?

first time _EL_CLEANUP() static void redisAeCleanup(void privdata) { redisAeEvents e = (redisAeEvents*)privdata; redisAeDelRead(privdata); redisAeDelWrite(privdata); zfree(e); } after zfree(e),

in __redisAsyncFree _EL_CLEANUP run again: Redis why _EL_CLEANUP(ac) is safe to  call multiple times? bcz of e->reading is true,so run aeDeleteFileEvent(loop,e->fd,AE_READABLE); but it will crash

of course in linux enviroment ,it is ok