[prevent] closed directory
authorSoyoung Kim <sy037.kim@samsung.com>
Wed, 9 Jan 2013 05:23:31 +0000 (14:23 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Wed, 9 Jan 2013 05:45:14 +0000 (14:45 +0900)
[Issue#] CID 35409
[Problem] unclose directory
[Cause] N/A
[Solution] closed directory for fixing resource leak.
[SCMRequest] N/A

Change-Id: Ide85a9161d354595a1015174c41b2dd3b5fa4ec7

src/jobs/widget_install/task_file_manipulation.cpp

index 79edb47..ba544b6 100644 (file)
@@ -74,6 +74,7 @@ bool _FolderCopy(std::string source, std::string dest)
                 WrtUtilMakeDir(destFolder);
 
                 if (!_FolderCopy(fullName, destFolder)) {
+                    closedir(dir);
                     return false;
                 }
             }