Penal Code Section 220
Commitment for trial or confinement by a person having authority who knows that he is acting contrary to law
220. Whoever, being in any office which gives him legal authority to commit persons for trial or to confinement, or to keep persons in confinement, corruptly or maliciously commits any person for trial or to confinement, or keeps any person in confinement, in the exercise of that authority, knowing that in so doing he is acting contrary to law, shall be punished with imprisonment for a term which may extend to seven years or with fine or with both.
Please refer to the Attorney General's Chamber of Malaysia's website for the latest law.