ngie 58d3da23e2 Fix up r300385
I accidentally glossed over the fact that tmp is manipulated via strchr, so
if we tried to free `tmp` after r300385, it would have crashed.

Create a separate pointer (tmp2) to track the original allocation of `tmp`,
and free `tmp2` if `p->nc_lookups` can't be malloced

MFC after: 4 days
X-MFC with: r300385
Reported by: Coverity
CID: 1356026
Sponsored by: EMC / Isilon Storage Division
2016-05-24 19:52:05 +00:00
..
2016-04-30 01:24:24 +00:00
2016-04-30 01:24:24 +00:00
2016-03-30 14:42:09 +00:00
2016-04-30 01:24:24 +00:00
MFH
2016-02-03 02:02:01 +00:00
2016-04-30 01:24:24 +00:00
2016-05-24 19:52:05 +00:00
2016-04-30 01:24:24 +00:00
2016-04-30 01:24:24 +00:00
2016-05-06 16:03:40 +00:00