Indonesian authorities say the drunken man pounded on the cockpit door during Friday's Virgin Australia flight, forcing the pilot to issue an alert code to air traffic control. Bali's airport was closed for nearly two hours because of the incident, forcing several flights to be diverted.
The cabin crew managed to restrain the man and put him in a rear seat for the remaining hour of the flight, and Indonesian troops later took him into custody.
The man was released late Sunday and was to leave Bali on his own initiative, Bali police special crimes chief Col Suryambodo Asmoro told reporters.
"Under Indonesia's law, he couldn't be charged in Indonesia because what he did was on a plane registered in Australia,'' Asmoro said, adding that it would be up to Australian authorities to decide whether to charge the man.
The Boeing 737-800 was carrying 137 passengers and seven crew members from Brisbane, Australia, to the resort island of Bali, which is a leading tourist destination for Australians.
No passengers or crew were hurt in the incident, according to the airline.