summaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_parse.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2006-01-14 21:28:30 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2006-01-14 21:28:30 +0000
commitefa3bacc868efac0ed75af7dc4a646b24a1f9473 (patch)
tree6c9c1460a681d6b8b169f53e7bca2a2ea4b62755 /sys/netgraph/ng_parse.c
parent68659d4b5dbdbb2134ba5ad1223aca1fb39ec9b6 (diff)
downloadsrc-test2-efa3bacc868efac0ed75af7dc4a646b24a1f9473.tar.gz
src-test2-efa3bacc868efac0ed75af7dc4a646b24a1f9473.zip
Notes
Diffstat (limited to 'sys/netgraph/ng_parse.c')
-rw-r--r--sys/netgraph/ng_parse.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c
index 5ec271d20b99..5dd7568ed7b6 100644
--- a/sys/netgraph/ng_parse.c
+++ b/sys/netgraph/ng_parse.c
@@ -1456,13 +1456,10 @@ ng_unparse_composite(const struct ng_parse_type *type, const u_char *data,
cbuf += strlen(cbuf);
didOne = 1;
}
- FREE(workBuf, M_NETGRAPH_PARSE);
/* Closing brace/bracket */
- if ((error = ng_parse_append(&cbuf, &cbuflen, "%s%c",
- didOne ? " " : "", (ctype == CT_STRUCT) ? '}' : ']')) != 0)
- goto fail;
- return (0);
+ error = ng_parse_append(&cbuf, &cbuflen, "%s%c",
+ didOne ? " " : "", (ctype == CT_STRUCT) ? '}' : ']');
fail:
/* Clean up after failure */