if (l == NULL)
return;
- free (l->key);
+ sfree (l->key);
if (l->next != NULL)
ts_key_list_free (l->next);
- free (l);
+ sfree (l);
} /* }}} void ts_name_list_free */
struct ts_data_s
}
if (cf_util_get_string (ci, &entry->key) != 0)
+ {
+ ts_key_list_free (entry);
return (-1); /* An error has already been reported. */
+ }
if (strlen (entry->key) == 0)
{
ERROR ("Target `set': The `%s' option does not accept empty string as "
"first argument.", ci->key);
- sfree (entry->key);
+ ts_key_list_free (entry);
return (-1);
}