Easiest method is to dissolve the compound in methanol, assuming it's soluble, then add KOH dissolved in methanol. KCl will precipitate out. Filter, rinse filtered solids with additional methanol, evaporate and be done with it.
Of course, if the compound you're freebasing is sensitive to strong bases, you'd want to go a different route...
-SpicyBrown