I've go discharge coming out of a foot wound. What should I do?

Call your doctor/ ER. This should be evaluated professionally. Call your doctor: primary care or podiatrist and have it evaluated asap. If you have any redness, swelling, odor or increased pain, do not delay. Delay can lead to serious complications.
See a podiatrist. This needs to be examined to determine if infection is present & what course of treatment.