mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#4459 Fix memory leak in RFT Reader
This commit is contained in:
1 parent
b095ac7226
commit
a7879813c9
1 file changed
+5
-1
@@ -40,6 +40,10 @@ RifReaderEclipseRft::RifReaderEclipseRft(const QString& fileName):
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifReaderEclipseRft::~RifReaderEclipseRft()
|
||||
{
|
||||
if (m_ecl_rft_file)
|
||||
{
|
||||
ecl_rft_file_free(m_ecl_rft_file);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -113,7 +117,7 @@ void RifReaderEclipseRft::open()
|
||||
m_rftAddressToLibeclNodeIdx[addressGrat] = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user