Fix Redis error handler set-up

Removed a memory leak and disabled warning suppression.