Liberace's Ex-Lover Bailed Out of Jail ... By Bunny Ranch Owner

5/31/2013 7:20 PM PDT

Scott Thorson -- Liberace's Ex-Lover Bailed Out of Jail ... By Bunny Ranch Master Dennis Hof

Scott Thorson -- Liberace's former lover who was just portrayed by Matt Damon -- has been bailed out of jail by Dennis Hof, the owner of the Bunny Ranch brothel ... TMZ has learned.

Thorson's life with Liberace is the subject of HBO's "Behind the Candelabra" -- but not covered in the movie is the fact Thorson has been sitting behind bars in Reno since February 22 ... waiting to be sentenced on burglary and identity theft charges.

Thorson pled guilty last month after getting busted for using stolen credit cards. Attorney David Houston is representing him at sentencing in July.

Hof tells TMZ he decided to help because he felt Thorson -- who has stage II colon cancer -- was not getting proper treatment in jail.

Hof says he will put Thorson up at the Bunny Ranch until his sentencing, and make sure he receives his treatments. For cancer ... not the typical ranch treatments.