If a blood clot or tumor is preventing blood flow in the legs, it must be treated to prevent edema. Often blood thinners are prescribed to dissolve a blood clot. A tumor may need to be removed surgically.