mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05: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:
1 parent
926f93fa4e
commit
9a1a26b267
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user