From 6d91af30b82e6a399a607189666e722444795945 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sun, 29 Aug 2004 18:50:38 +0000 Subject: [PATCH] fixed memory leak --- amxmodx/amxxfile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/amxmodx/amxxfile.cpp b/amxmodx/amxxfile.cpp index 5db57cfa..748ca6cc 100755 --- a/amxmodx/amxxfile.cpp +++ b/amxmodx/amxxfile.cpp @@ -270,6 +270,7 @@ CAmxxReader::Error CAmxxReader::GetSection(void *buffer) // AMXXLOG_Log("|||| First Bytes: %d %d %d %d", tempBuffer[0], tempBuffer[1], tempBuffer[2], tempBuffer[3]); int result = uncompress((Bytef *)buffer, &destLen, (Bytef *)tempBuffer, m_SectionLength); + delete [] tempBuffer; // AMXXLOG_Log("|||| Result: %d, m_SectionLength=%d, destLen=%d", result, m_SectionLength, destLen); if (result != Z_OK) {