If this condition is TRUE, and the code jumps to error, I think you now have a leak, as reply isn't freed.