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,7 +1214,8 @@ gotIndex:
/* Done */
*buflen = blen;
done:
FREE(foff, M_NETGRAPH);
if (foff != NULL)
FREE(foff, M_NETGRAPH);
return (error);
}