Greasy ointment is oil-based. If you get the ointment on fabric, it is likely to leave a stain, which can be difficult to remove with standard cleaning methods. However, if you get to it quickly, you can save your fabric from the greasy stain left behind by the ointment. Next time you have to use the ointment, you'll be more careful around your fabrics.
Remove as much of the greasy ointment as you can by scraping it away from your fabric.
Pour a liberal amount of baking soda onto the greasy stain. This will absorb the leftover ointment from the fabric fibres.
Wait about 15 minutes. Then remove the baking soda. Use a vacuum cleaner when appropriate or a small cleaning brush.
If you can still see some of the grease mark, add some dry-cleaning solvent to a rag and dab the fabric. The dry cleaning solvent will lift it away.
Continue dabbing the fabric to remove the remainder of the dry-cleaning solvent.