This is usually caused by varicose or incompetent veins, hot weather, being overweight or normal fluid retention.  On its own it is far less commonly a symptom of heart disease – although it can be important if the swelling is progressive, creeps further up the legs and is associated with shortness of breath.