I have the following code.If the scanFile throws an exception, the fileForScan cannot be deleted as the resource is locked. Does the scanFile not release the resource if an exception is caught.
req = sem.createStreamScanRequest(fileForScan, scanFileOriginName, output, scPolicy);
result = req.scanFile();
Thanks