diff options
author | rouzier <rouzier@gmail.com> | 2021-08-18 22:13:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 19:13:34 -0700 |
commit | 2d9d77518d012a54ae34f9822e4b4d19823c4b75 (patch) | |
tree | 12d93b6486ff5957680cbb04bd7714bd651a8493 | |
parent | f5f31ff9b92b6bdf628716449d0d0782ceb7704a (diff) |
Don't leak memory if an invalid type is set (#906)
Co-authored-by: James Rouzier <jrouzier@inverse.ca>
-rw-r--r-- | hiredis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |