Fix memory leak due to reply objects