From ea9f9d2515081d191507ea055cd0e614a078d914 Mon Sep 17 00:00:00 2001 From: Mark Nunberg Date: Tue, 12 Feb 2019 09:30:43 -0500 Subject: fixed wrong memset args --- hiredis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hiredis.c b/hiredis.c index d28fcb9..ba8d316 100644 --- a/hiredis.c +++ b/hiredis.c @@ -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); } -- cgit v1.2.3