The ANC did not free anybody. The MK was militarily insignificant and as long as the Cold War remained the West would have provided tacid support for the NP regime. The NP chose to hand over power willingly once the West clamped down on the them following the collapse of the Soviet Union and the disappearance of Soviet supported threats to
Western interests in South Africa. If anything, Gorbachev freed the non-whites in
South Africa, as well as the actions of the other players in the anti-Soviet struggle,
Mikhail Gorbachev, Ronald Reagan, Margaret Thatcher, John Paul II, Boris Yeltsin, various European freedom movements eg
Solidarity and so on all contributed to an ultimate dismantling of apartheid in SA. However the fall of the Soviet Union, delivered by Mikhail Sergeyevich was
the key to tougher sanctions and messaging to PW Botha and FW De Klerk to get rid of apartheid.