mirror of
https://github.com/ip7z/7zip.git
synced 2026-01-04 23:50:01 +01:00
removed redundant free call
This commit is contained in:
parent
222ead54f4
commit
9420d7d950
6
C/XzIn.c
6
C/XzIn.c
|
|
@ -117,10 +117,8 @@ static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAllocPt
|
|||
p->numBlocks = numBlocks;
|
||||
p->blocks = (CXzBlockSizes *)ISzAlloc_Alloc(alloc, sizeof(CXzBlockSizes) * numBlocks);
|
||||
if (!p->blocks)
|
||||
{
|
||||
Xz_Free(p, alloc);
|
||||
return SZ_ERROR_MEM;
|
||||
}
|
||||
|
||||
for (i = 0; i < numBlocks; i++)
|
||||
{
|
||||
CXzBlockSizes *block = &p->blocks[i];
|
||||
|
|
@ -147,7 +145,7 @@ static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAllocPt
|
|||
Xz_Free(p, alloc);
|
||||
return SZ_ERROR_ARCHIVE;
|
||||
}
|
||||
|
||||
|
||||
return SZ_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue