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 926f93fa4e
commit 9a1a26b267

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