diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index 75d3b5dd3856..54488ef35ae1 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -1214,7 +1214,8 @@ ng_parse_composite(const struct ng_parse_type *type, const char *s, /* Done */ *buflen = blen; done: - FREE(foff, M_NETGRAPH); + if (foff != NULL) + FREE(foff, M_NETGRAPH); return (error); }