During flushing of 45 to 50 images in sequence, opencv imread function is giving error of "OpenCV Error: Insufficient memory (Failed to allocate memory) in OutOfMemoryError. Please provide the solution to this problem, that how to release memory of opencv imread during cancellation of one imread function in between.