Fix the prevent defect
authorYoonchan Choi <yc81.choi@samsung.com>
Fri, 12 Apr 2013 01:39:46 +0000 (10:39 +0900)
committerYoonchan Choi <yc81.choi@samsung.com>
Fri, 12 Apr 2013 01:57:14 +0000 (10:57 +0900)
Change-Id: I988a444c892af8f1742e0b4981647aa2732802d3
Signed-off-by: Yoonchan Choi <yc81.choi@samsung.com>
pkgmgr_account/src/account.cpp

index a66001c..9fd5ff2 100644 (file)
@@ -207,7 +207,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
 
 CATCH:
        account_type_destroy(accountTypeHandle);
-       account_disconnect();
+       _SysTryReturn(NID_SCL, account_disconnect() == ACCOUNT_ERROR_NONE, -1, "A system error has occurred.");
 
        return ret;
 }
@@ -262,7 +262,7 @@ int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
        return 0;
 
 CATCH:
-       account_disconnect();
+       _SysTryReturn(NID_SCL, account_disconnect() == ACCOUNT_ERROR_NONE, -1, "A system error has occurred.");
 
        return ret;
 }