From e5849e3ab25304048e0d6fa283faaa6b706c4bcf Mon Sep 17 00:00:00 2001 From: shchmue Date: Fri, 25 Oct 2019 10:05:57 -0600 Subject: [PATCH] Remove invalid free for this use case --- source/hos/pkg2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source/hos/pkg2.c b/source/hos/pkg2.c index e745cbc..301fd4e 100644 --- a/source/hos/pkg2.c +++ b/source/hos/pkg2.c @@ -139,7 +139,6 @@ int pkg2_decompress_kip(pkg2_kip1_info_t* ki, u32 sectsToDecomp) memcpy(newKip, &hdr, sizeof(hdr)); newKipSize = dstDataPtr-(unsigned char*)(newKip); - free(ki->kip1); ki->kip1 = newKip; ki->size = newKipSize;