mirror of
https://github.com/opencv/opencv.git
synced 2026-09-13 05:42:51 -05:00
Coverity: memory leak in OpenEXR reader
This commit is contained in:
@@ -381,6 +381,11 @@ bool ExrDecoder::readData( Mat& img )
|
||||
|
||||
close();
|
||||
|
||||
if( !m_native_depth || (!color && m_iscolor ))
|
||||
{
|
||||
delete[] buffer;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user