mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
Fix: Memory leak in reservoir test
The test `RigReservoirTest_BasicTest10k_NativeECL_Test` was allocating an `ecl_grid_type` object but was not freeing it, leading to a memory leak. This commit fixes the issue by calling `ecl_grid_free` at the end of the test.
This commit is contained in:
1 parent
8b457f2156
commit
5aab904731
1 file changed
+1
@@ -160,6 +160,7 @@ TEST( RigReservoirTest, BasicTest10k_NativeECL )
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
ecl_grid_free( grid );
|
||||
}
|
||||
|
||||
TEST( RigReservoirTest, Test10k_ReadThenWriteToECL )
|
||||
|
||||
Reference in new issue
Block a user