1. Quashing is very rare power of the high court and is used is very sparingly and only when the re is prima facie failure of the case of non disclosure of any offence at all.
2.However the opportune time for filing the petition is after submission of charge sheet.
3. This has nothing do with seeking bail which is separate proceeding filed u/s 439 CRPC.
4. The release of an accused kept under custody can not be done in a quashing petition.