Fix static analysis issue 16/115116/1
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 09:52:01 +0000 (18:52 +0900)
Change-Id: I1275ef8c1aa377dc0c8ffd1dfcc2ad8d88f3e0fe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
plugin/app2sd/server/app2sd_interface.c

index 799cc70..eb972b4 100644 (file)
@@ -1539,6 +1539,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;
        }