Commit 1eb44cf0 authored by Mark Nunberg's avatar Mark Nunberg
Browse files

scrub redisContext before freeing

This helps us detect use-after-free
parent f60c5506
......@@ -618,6 +618,7 @@ void redisFree(redisContext *c) {
if (c->ssl) {
redisFreeSsl(c->ssl);
}
memset(0xff, c, sizeof(*c));
free(c);
}
......
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