From 66818e496385444eb4281cb63334438118c4e9da Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Tue, 8 Jan 2013 11:23:12 +0100 Subject: [PATCH] [Prevent] Fixing issues: 35409 [Issue#] LINUXNGWAP-651 [Bug] Resorues not freed [Cause] N/A [Solution] Free resources at exit of functions [Verification] Build repository Change-Id: I2d5870ec3fa135f2646b1f65ea10608f2d3862f5 --- src/jobs/widget_install/task_file_manipulation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jobs/widget_install/task_file_manipulation.cpp b/src/jobs/widget_install/task_file_manipulation.cpp index ba544b6..8306799 100644 --- a/src/jobs/widget_install/task_file_manipulation.cpp +++ b/src/jobs/widget_install/task_file_manipulation.cpp @@ -63,6 +63,7 @@ bool _FolderCopy(std::string source, std::string dest) std::string fullName = source + "/" + fileName; if (stat(fullName.c_str(), &statInfo) != 0) { + closedir(dir); return false; } -- 2.7.4