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