Pour medication into a sealable plastic bag. If medication is a solid (pill, liquid capsule, etc.), crush it or add water to dissolve it.
Add kitty litter, sawdust, coffee grounds (or any material that mixes with the medication and makes it less appealing for pets and children to eat) to the plastic bag.
Seal the plastic bag and put it in the trash.