mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5067 Janitor : Fix memory leak when opening summary files
This commit is contained in:
parent
04e71bbe94
commit
6b782cb646
@ -65,6 +65,10 @@ void RifEclipseSummaryTools::findSummaryFiles( const QString& inputFile, QString
|
||||
std::string extention;
|
||||
if ( myExtention ) extention = myExtention;
|
||||
|
||||
free( myExtention );
|
||||
free( myBase );
|
||||
free( myPath );
|
||||
|
||||
if ( path.isEmpty() || base.isEmpty() ) return;
|
||||
|
||||
char* myHeaderFile = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user