I read you question carefully and I understand your concern.
If you mean related in the sense of the heart issue causing the leg issue or vice versa then no, they do not cause each other.
The hole in the heart may have some significance in one scenario though, if you have a thrombosis of one of the veins in the foot. It would be a serious issue with or without the heart issue as it can release emboli in the circulation which may block lung vessels, a
pulmonary embolism. In people with a hole in the heart, where some blood circulates from the right heart chambers directly to the left without passing into the lungs, the above mentioned clots may pass to the left side and besides the pulmonary embolism may also block vessels in other organs, such as the brain, cause a
stroke.
Of course it would be a theoretical issue if you had
vein thrombosis, first that painful leg must be visited to determine whether there is a thrombosis or some other issue.
I hope to have been of help.