As a child I used to get that almost every time I peed. Maybe I wasn't drinking enough water or something. I swear I changed my underwear everyday! Mom made me!
Now it happens sometimes right after sex. Othertimes when I havn't had enough fluids.
If it happens again drink plenty of water. Extra water. Cranberry juice is excelent too. If it gets really bad pouring warm water over your urethra is supposed to help while you pee. And if it gets that bad it can't hurt to go to the doctor and get some antibiotics.
Take care and drink lots of fluids!