mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4217 Summary : Fix memory leak for vector of time_t values
This commit is contained in:
@@ -50,8 +50,10 @@ std::vector<time_t> getTimeSteps(ecl_sum_type* ecl_sum)
|
||||
{
|
||||
timeSteps.push_back(time_t_vector_iget(steps, i));
|
||||
}
|
||||
free(steps);
|
||||
|
||||
time_t_vector_free(steps);
|
||||
}
|
||||
|
||||
}
|
||||
return timeSteps;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user