When catopen(3) returns an error, it caches the result of that error
from r202992. The refcount on the cache entry is not initialized, so any attempt to clean the cache will skip over this item since it likely has a >0 value. This change is currently a NOP. There is work in progress to support freeing the cache which requires this change to avoid a memory leak. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
b9be305241
commit
ff61e3f5d6
@ -83,6 +83,7 @@ __FBSDID("$FreeBSD$");
|
||||
np->name = strdup(n); \
|
||||
np->path = NULL; \
|
||||
np->catd = NLERR; \
|
||||
np->refcount = 0; \
|
||||
np->lang = (l == NULL) ? NULL : \
|
||||
strdup(l); \
|
||||
np->caterrno = e; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user