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:
Tor Harald Sandve 2017-04-20 12:58:16 +02:00
parent e52b7ef2ad
commit a96c1f9ea0

View File

@ -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);