Take a look at the attached picture. This is not the reaction of polymerization of salicylic acid. It just shows the structure of salicylic acid and the structure when it's polymerized. The polymerization is done by connecting the salicylic acids where you produce one molecule of water.