In order to prevent gangrene from occurring again, the cause of any blood supply blockage must be determined so that the underlying condition can be treated. Often vascular surgery, such as bypass surgery or angioplasty, is needed to restore blood flow. Medication to prevent blood clots may be used in some cases.