gallows treed

adj.

Drunk to a degree that leaves the body upright only by attachment to something vertical.

Kenseth remained gallows treed on the landing, one hand fixed to the newel post.

Source: Wiktionary