While leg swelling can occur after long periods of standing, especially in the heat, it can also be a sign of a heart problem. You should see your physician who may want to prescribe a pill to eliminate excess body fluid or even re-evaluate the status of your heart function.