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
e52b7ef2ad
commit
a96c1f9ea0
|
@ -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