diff --git a/src/mod/applications/mod_redis/credis.c b/src/mod/applications/mod_redis/credis.c index 61467f2776..a84452bddf 100644 --- a/src/mod/applications/mod_redis/credis.c +++ b/src/mod/applications/mod_redis/credis.c @@ -478,6 +478,7 @@ static int cr_receivereply(REDIS rhnd, char recvtype) static void cr_delete(REDIS rhnd) { + if (!rhnd) return; if (rhnd->reply.multibulk.bulks != NULL) free(rhnd->reply.multibulk.bulks); if (rhnd->reply.multibulk.idxs != NULL)