This commit is contained in:
Alexander Dzyuba 2025-02-12 14:18:35 +00:00 committed by GitHub
commit 9852d9b313
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,9 @@ static void redisLibuvSetTimeout(void *privdata, struct timeval tv) {
static void redisLibuvCleanup(void *privdata) {
redisLibuvEvents* p = (redisLibuvEvents*)privdata;
if (p == NULL)
return;
p->context = NULL; // indicate that context might no longer exist
if (p->timer.data) {
uv_close((uv_handle_t*)&p->timer, on_timer_close);