It is not mandatory for an employer/company to give an employee a NOC, it is purely/solely the discretion of the employer/company to give or not to give a NOC.

Even if your contract is already expired and they still didnt give you a release and you still go to work,just ask them for a new contract.

Goodluck anyway.