Thanks for seeking advice.
You seem to be having a leaking ear- called Acute Suppurutive Ottitis Media.[ASOM]
Every time you have a cold
/ are recovering from cold you may see pus oozing from the ear.
Use some nasal drops alongwith the Antibiotics & pain relievers given by your doctor.
If persists, see an ENT Surgeon.