From 5c933a7faf7714b01ec5cd9e60c1da2f6ebe5c1f Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 10 Sep 2015 13:41:22 +0200 Subject: [PATCH] pcsx2:gzip: free the index Normally index will be NULL if len is 0 but it won't hurt --- pcsx2/CDVD/GzippedFileReader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcsx2/CDVD/GzippedFileReader.cpp b/pcsx2/CDVD/GzippedFileReader.cpp index 4f0ccc1354..77aed657cf 100644 --- a/pcsx2/CDVD/GzippedFileReader.cpp +++ b/pcsx2/CDVD/GzippedFileReader.cpp @@ -316,6 +316,7 @@ bool GzippedFileReader::OkIndex() { WriteIndexToFile((Access*)m_pIndex, indexfile); } else { Console.Error(L"ERROR (%d): index could not be generated for file '%s'", len, WX_STR(m_filename)); + free_index(index); InitZstates(); return false; }