rc = _account_query_step(hstmt);
- ACCOUNT_CATCH_ERROR_P(rc == SQLITE_ROW, { *error_code = _ACCOUNT_ERROR_RECORD_NOT_FOUND; _ERR("The record isn't found from user db. rc=[%d]", rc); }, _ACCOUNT_ERROR_RECORD_NOT_FOUND, ("The record isn't found.\n"));
+ ACCOUNT_CATCH_ERROR_P(rc == SQLITE_ROW, { *error_code = _ACCOUNT_ERROR_RECORD_NOT_FOUND;
+ _ERR("The record isn't found from user db. rc=[%d]", rc); },
+ _ACCOUNT_ERROR_RECORD_NOT_FOUND, ("The record isn't found.\n"));
provider_feature_s* feature_record = NULL;
if (*error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)
feature_list = _account_type_query_provider_feature_by_app_id_from_global_db(app_id, error_code);
- if (*error_code != _ACCOUNT_ERROR_NONE)
+ if (*error_code != _ACCOUNT_ERROR_NONE) {
_account_type_gslist_feature_free(feature_list);
+ return NULL;
+ }
_INFO("Returning account feature_list");