mmap #8
@ -19,6 +19,9 @@ static int zeroClose(struct uAddrVirtualReg *vreg)
|
|||||||
{
|
{
|
||||||
struct zeroMappedEntry *ent = (struct zeroMappedEntry *)vreg->res->customData;
|
struct zeroMappedEntry *ent = (struct zeroMappedEntry *)vreg->res->customData;
|
||||||
ent->refCnt--;
|
ent->refCnt--;
|
||||||
|
if (ent->refCnt == 0) {
|
||||||
|
free(vreg->res->customData);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user