Avoid free'ing a NULL pointer.

This commit is contained in:
archie 2000-08-31 23:08:52 +00:00
parent 05f7bf4f57
commit bfbd66dc36

View File

@ -1214,6 +1214,7 @@ ng_parse_composite(const struct ng_parse_type *type, const char *s,
/* Done */
*buflen = blen;
done:
if (foff != NULL)
FREE(foff, M_NETGRAPH);
return (error);
}