redis: fix double free