A similar thing has happened with my pug on a few occasions. A simple answer is that your pug has an ear infection. This is definetly an issue around allergy season or if bacteria is growing in your dogs ear. If you contact your vet they should recommend a cream antibiotic. The flap ear of the pug is a perfect breeding ground for bacteria with a moist warm environment so be sure to keep it clean!