Rousseau, Jean-Jacques. The Social Contract. Trans. Maurice Cranston. Harmondsworth, England: Penguin Books, 1968.
Wokler, Robert. Rousseau. Oxford: Oxford University Press, 1995.
When people aren't abiding the general will and they are "forced to be free", this wasn't advocating totalitarianism. The general will is laws that are accepted as just and those who don't follow the general will are breaking the law. Rousseau is advocating to force people to follow the law because it is in everyone's best interest to do so.