mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
FIX memory leakage in well_controls
The Alq and vfp is set free in well_controls_destroy to avoid memory leakage.
This commit is contained in:
parent
926f93fa4e
commit
9a1a26b267
@ -127,6 +127,8 @@ well_controls_destroy(struct WellControls *ctrl)
|
||||
free (ctrl->distr);
|
||||
free (ctrl->target);
|
||||
free (ctrl->type);
|
||||
free (ctrl->alq);
|
||||
free (ctrl->vfp);
|
||||
}
|
||||
|
||||
free(ctrl);
|
||||
|
Loading…
Reference in New Issue
Block a user