MFC r279808:
Fix memory leak. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
609485e24d
commit
f55d10feb9
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user