Hi, you are trying to keep the hip bone
in position, but it is causing pressure on the knee bones, and friction is caused and which tend to create heat. So it is advisible to sleep in the position which is comfertable to the knee joint.
I advise you to have shoes to suit your deformed leg so that you can minimise the friction on the joints. Thank you.