Surgery

An 85-year-old gentleman complaint of pain in leg while lying down, it lessens when he hangs the foot out of bed. What is the cause?