[Prevent] Fixing issues: 35409
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 8 Jan 2013 10:23:12 +0000 (11:23 +0100)
committerZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Wed, 9 Jan 2013 07:57:33 +0000 (08:57 +0100)
[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

index ba544b6..8306799 100644 (file)
@@ -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;
             }