From 7a7ea114fbaa76d56db4818ec84e21d564a4b412 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 16 Dec 2014 23:26:33 +0000 Subject: PluginUpdater: -Fixed memory leak git-svn-id: http://svn.miranda-ng.org/main/trunk@11481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/unzipfile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index 17282cba41..2f0e5872c4 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -63,8 +63,10 @@ bool extractCurrentFile(unzFile uf, TCHAR *ptszDestPath, TCHAR *ptszBackPath, bo if (!(file_info.external_fa & FILE_ATTRIBUTE_DIRECTORY)) { err = unzOpenCurrentFile(uf); - if (err != UNZ_OK) + if (err != UNZ_OK) { + mir_free(ptszNewName); return false; + } if (ptszBackPath != NULL) { PrepareFileName(tszDestFile, SIZEOF(tszDestFile), ptszDestPath, ptszNewName); -- cgit v1.2.3