Some of the resurrected people like Sai's brother were freed from the jutsu although Kabuto told Tobi that the resurrected people can't be killed. This is a pic of a conversation between Kabuto and Tobi.
Similarly, Sasori also disappeared after telling Kankuro to use his puppet parents.
How can the souls be freed from the bodies even if the user who resurrected them did not release them? And why didn't this happen when the third hokage was fighting his predecessors during the chunin exams?