mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4459 Fix memory leak in RFT Reader
This commit is contained in:
parent
b095ac7226
commit
a7879813c9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user