Fixed memory leak in function operationStatus