Unverified Commit 2d9d7751 authored by rouzier's avatar rouzier Committed by GitHub
Browse files

Don't leak memory if an invalid type is set (#906)


Co-authored-by: default avatarJames Rouzier <jrouzier@inverse.ca>
parent f5f31ff9
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment