It all depends on how you define "efficient." Vague proclamations about the market like this often hold utility in narrow contexts, but abstracted as a general rule rely on circular reasoning.
The social benefits from free software are positive externalities and thus not naturally dealt with by the free market. Compare with the negative externalities of air pollution, for example.