Antauro Humala was acquitted for lack of evidence over the alleged 2006 pay offs.
Prosecutors had been seeking a punishment of six more years in jail and a fine equivalent to $13,000 for allegedly paying to sneak his lover in during non-visiting hours.
President Ollanta Humala's brother remains in prison, though. In 2005, seeking to instigate an uprising to force the resignation of then-president Alejandro Toledo, he and supporters attacked a police station. Six people died and Humala eventually got a 19-year prison term.
For that offense he was sent to a regular prison. But after being charged later with paying to get his girlfriend in to see him, he was transferred to a maximum security facility.