The free market is one aspect of capitalism. The concentration of capital which can be leveraged to undermine the freedom of the market is another.
Markets certainly don't always automatically fix itself. They require oversight and regulation, or else they tend to result in cartels and monopolies. The free market is great when it works well, but quite often it needs a bit of help.