Update redisclient.c

Fixed seg.fault when type exit.