From: Pawel Andruszkiewicz Date: Wed, 3 Jun 2015 13:42:30 +0000 (+0200) Subject: [Archive] Close directory in case of error. X-Git-Tag: submit/tizen_mobile/20150612.133019^2~2^2~49^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=537208cf46cdd92dfc31853dacaefe05413c7c5e;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Archive] Close directory in case of error. Prevent CID: 403458 [Verification] TCT pass rate: 100% Change-Id: Id81c0cc98ce662597e014c57cec8a8e403382cb9 Signed-off-by: Pawel Andruszkiewicz --- diff --git a/src/archive/filesystem_node.cc b/src/archive/filesystem_node.cc index f76950c1..208955ac 100755 --- a/src/archive/filesystem_node.cc +++ b/src/archive/filesystem_node.cc @@ -614,6 +614,7 @@ PlatformResult Node::removeAsDirectory(const PathPtr& path, bool recursive) } if (result.error_code() != ErrorCode::NO_ERROR) { LoggerE("Fail: getFullPath() (%d)",result.error_code()); + closedir(dir); return result; } }