Fix memory leak in rc.conf processing.

This commit is contained in:
Chris Johns 2016-05-18 15:21:09 +10:00
parent 05d47ae865
commit f9fa038c94

View File

@ -247,6 +247,7 @@ rc_conf_create(rtems_bsd_rc_conf* rc_conf,
static void
rc_conf_destroy(rtems_bsd_rc_conf* rc_conf)
{
free((void*) rc_conf->lines);
free((void*) rc_conf->data);
rc_conf->data = NULL;
rc_conf->name = NULL;