fixed wrong memset args

This commit is contained in:
Mark Nunberg 2019-02-12 09:30:43 -05:00
parent f0a7595056
commit ea9f9d2515
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ void redisFree(redisContext *c) {
if (c->ssl) {
redisFreeSsl(c->ssl);
}
memset(0xff, c, sizeof(*c));
memset(c, 0xff, sizeof(*c));
free(c);
}