Fix memory leak in redis.c