diff --git a/hiredis.c b/hiredis.c index 9947b1ef4..7e7af8274 100644 --- a/hiredis.c +++ b/hiredis.c @@ -835,7 +835,7 @@ redisContext *redisConnectWithOptions(const redisOptions *options) { c->fd = options->endpoint.fd; c->flags |= REDIS_CONNECTED; } else { - // Unknown type - FIXME - FREE + redisFree(c); return NULL; }