redis / hiredis

Minimalistic C client for Redis >= 1.2
BSD 3-Clause "New" or "Revised" License
6.15k stars 1.8k forks source link

Fixed crash when #1223

Open kaegoorn opened 10 months ago

kaegoorn commented 10 months ago

Fixed crash when __redisAsyncFree is called if redisLibuvAttach has not completed

` context = redisAsyncConnect(host, port);

    if (redisLibuvAttach(context, loop) != REDIS_OK)
         redisAsyncFree(context); // <--- crash

`