Update example.c

Added a call to redisFree()

Closes #148.