ret = stc_restriction_rule_set_app_id(rule, "TOTAL_DATACALL");
if (STC_ERROR_NONE != ret) {
- stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_app_id() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
ret = stc_restriction_rule_set_iface_type(rule, STC_IFACE_DATACALL);
if (STC_ERROR_NONE != ret) {
- stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_iface_type() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
ret = stc_restriction_rule_set_subscriber_id(rule, subscriber_id);
if (STC_ERROR_NONE != ret) {
- stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_subscriber_id() error:"\
"%s", get_error_message(ret));
ret = stc_restriction_rule_set_limit(rule, limit);
if (STC_ERROR_NONE != ret) {
- stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_limit() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
ret = stc_restriction_rule_set_warning_limit(rule, warning_limit);
if (STC_ERROR_NONE != ret) {
- stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR(
"stc_restriction_rule_set_warning_limit() error: %s",
get_error_message(ret));
result = set_mobile_restriction_rule_parameters(rule, subscriber_id, limit,
warning_limit);
if (RESTRICTIONS_OK != result) {
- SETTING_TRACE_ERROR("set_restriction_rule_parameters() error");
+ SETTING_TRACE_ERROR("set_mobile_restriction_rule_parameters() error");
stc_restriction_rule_destroy(rule);
return result;
}