Merchants are free to attempt to create artificial scarcity, and that is what happens when a company keeps it codes private or photographers put watermarks on their images online. Proprietary and "open-source" products can live and prosper side-by-side, as we learn from any drug store that offers both branded and generic goods inches apart on the shelves.
But what you are not permitted to do in a free market is use violence in the attempt to create an artificial scarcity, which is all that IP legislation really does. Benjamin Tucker said in the 19th century that if you want your invention to yourself, the only way is to keep it off the market. That remains true today.
So consider a world without trademark, copyright, or patents. It would still be a world with innovation perhaps far more of it. And yes, there would still be profits due to those who are entrepreneurial. Perhaps there would be a bit less profit for litigators and IP lawyers but is this a bad thing?