Lines Matching refs:alloc
68 static void LzInWindow_Free(CMatchFinder *p, ISzAllocPtr alloc)
72 ISzAlloc_Free(alloc, p->bufBase);
78 static int LzInWindow_Create2(CMatchFinder *p, UInt32 blockSize, ISzAllocPtr alloc)
85 LzInWindow_Free(p, alloc);
104 p->bufBase = (Byte *)ISzAlloc_Alloc(alloc, blockSize);
254 static void MatchFinder_FreeThisClassMemory(CMatchFinder *p, ISzAllocPtr alloc)
256 ISzAlloc_Free(alloc, p->hash);
260 void MatchFinder_Free(CMatchFinder *p, ISzAllocPtr alloc)
262 MatchFinder_FreeThisClassMemory(p, alloc);
263 LzInWindow_Free(p, alloc);
266 static CLzRef* AllocRefs(size_t num, ISzAllocPtr alloc)
271 return (CLzRef *)ISzAlloc_Alloc(alloc, sizeInBytes);
372 ISzAllocPtr alloc)
388 if (p->directInput || LzInWindow_Create2(p, GetBlockSize(p, historySize), alloc))
477 MatchFinder_FreeThisClassMemory(p, alloc);
479 p->hash = AllocRefs(newSize, alloc);
489 MatchFinder_Free(p, alloc);