From: Tomasz Iwanek Date: Tue, 8 Jan 2013 10:23:12 +0000 (+0100) Subject: [Prevent] Fixing issues: 35409 X-Git-Tag: submit/trunk/20130114.112804~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66818e496385444eb4281cb63334438118c4e9da;p=platform%2Fframework%2Fweb%2Fwrt-installer.git [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 --- 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; }