if ((_account_db_err_code(account_db_handle) == SQLITE_PERM) && (g_strcmp0(table, ACCOUNT_CUSTOM_TABLE) == 0)) {
_account_end_transaction(account_db_handle, false);
ACCOUNT_ERROR("Access failed(%s)", _account_db_err_msg(account_db_handle));
- g_slist_free_full(account_id_list, g_free);
return _ACCOUNT_ERROR_PERMISSION_DENIED;
}
if (rc != _ACCOUNT_ERROR_NONE) {
if (package_name != NULL) {
_account_end_transaction(account_db_handle, false);
- g_slist_free_full(account_id_list, g_free);
}
_ERR("finalize error");
error_code = rc;
goto CATCH;
} else if (error_code != _ACCOUNT_ERROR_NONE) {
_ERR("account-custom-table deletion failed - error[%d]", error_code);
+ g_slist_free_full(account_id_list, g_free);
return error_code;
}
goto CATCH;
} else if (error_code != _ACCOUNT_ERROR_NONE) {
_ERR("account-custom-table deletion failed - error[%d]", error_code);
+ g_slist_free_full(account_id_list, g_free);
return error_code;
}
goto CATCH;
} else if (error_code != _ACCOUNT_ERROR_NONE) {
_ERR("account-custom-table deletion failed - error[%d]", error_code);
+ g_slist_free_full(account_id_list, g_free);
return error_code;
}
is_success = TRUE;
ret_transaction = _account_end_transaction(account_db_handle, is_success);
if (ret_transaction != _ACCOUNT_ERROR_NONE) {
+ g_slist_free_full(account_id_list, g_free);
ACCOUNT_ERROR("account_delete:_account_end_transaction fail %d, is_success=%d\n", ret_transaction, is_success);
} else {
if (is_success == true) {
if (vconf_set_str(VCONFKEY_ACCOUNT_MSG_STR, buf) != 0) {
_ERR("Vconf MSG Str set FAILED !!!!!!\n");;
}
-
- _ACCOUNT_FREE(p_tmpid);
}
- g_slist_free(account_id_list);
+ g_slist_free_full(account_id_list, g_free);
}
}