Like Chomsky, Stallman did nothing illegal or immoral himself, just with his speech defended somebody who (potentially) did an illegal/immoral thing.
So if we consider "holocaust denial" to be the bad action (whether it is or not, that is for another discussion), then the analogy holds.