CHAPTER THREE
Procedure
PART VII
GENERAL PROCEDURAL MATTERS
Habeas Corpus and like Proceedings
High Court to release person in illegal custody
1022. The Court may, whenever it thinks fit, direct that a person unlawfully or improperly detained in public or private custody in the State or within the limits of its jurisdiction be set free.
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.