Avoid free'ing a NULL pointer.
This commit is contained in:
parent
05f7bf4f57
commit
bfbd66dc36
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user