One of the legs of my sofa broke. Thinking about repairing but not sure the best way to do that. I have a very limited amount of tools

I’m thinking of unscrewing the other legs, then resting the frame on something. What should I rest it on? I’m thinking of just getting some wood form Lowes or something like that. Is that totally stupid?

Is there a way to check the strength of the frame? Am I just delaying the inevitable?

Appreciate any advice you can offer!