diff --git a/daemon/redis.c b/daemon/redis.c index 9026f136d..bbdcc059a 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -677,6 +677,7 @@ err: static void redis_close(struct redis *r) { if (r->ctx) redisFree(r->ctx); + r->ctx = NULL; mutex_destroy(&r->lock); g_slice_free1(sizeof(*r), r); }