mmap #8

Merged
mathieu merged 22 commits from mmap into master 2024-02-11 15:29:59 +01:00
Showing only changes of commit 3339f8b059 - Show all commits

View File

@ -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;
} }