Fix static analysis issue 71/115071/1 accepted/tizen/3.0/common/20170217.122101 accepted/tizen/3.0/ivi/20170217.021824 accepted/tizen/3.0/mobile/20170217.021533 accepted/tizen/3.0/tv/20170217.021622 accepted/tizen/3.0/wearable/20170217.021745 submit/tizen_3.0/20170216.102709
authorJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 16 Feb 2017 07:55:57 +0000 (16:55 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 16 Feb 2017 07:55:57 +0000 (16:55 +0900)
Change-Id: I1275ef8c1aa377dc0c8ffd1dfcc2ad8d88f3e0fe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
plugin/app2sd/server/app2sd_interface.c

index 31882e2..500819e 100644 (file)
@@ -1637,6 +1637,7 @@ int app2sd_migrate_legacy_all(void)
        pc = pkgmgr_client_new(PC_REQUEST);
        if (pc == NULL) {
                _E("failed to create pkgmgr client");
+               closedir(dir);
                return APP2EXT_ERROR_PKGMGR_ERROR;
        }