MFC r279808:

Fix memory leak.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2015-05-21 13:21:03 +00:00
parent 609485e24d
commit f55d10feb9

View File

@ -615,9 +615,11 @@ node_options_x(const struct node *n, char *x)
{
char *options;
if (n == NULL)
return (x);
options = separated_concat(x, n->n_options, ',');
if (n->n_parent == NULL)
return (options);
free(x);
return (node_options_x(n->n_parent, options));
}