Capitalism doesn't require a free market (though capitalist economies would no doubt do better with a free market).
One does not require the other.
From AI:
"capitalism and the free market are closely intertwined, with the free market often serving as the primary mechanism for organizing economic activity in a capitalist system. However, the relationship is not one of perfect overlap, as capitalist economies can and do include various forms of government intervention to address social and economic challenges"