TRUE, NULL, NULL);
if (NULL == v_values || NULL == v_attrs) {
Z_LOGE("Failed to create variant!");
- if (v_values)
- g_variant_unref(v_values);
- if (v_attrs)
- g_variant_unref(v_attrs);
} else {
Z_LOGD("Write attributes resp");
zigbee_zcl_global_control_emit_write_attributes_rsp(global_control_object,
attr_t->node_id, attr_t->src_ep, v_values, v_attrs,
attr_t->cluster_id, attr_t->record_length);
}
+ if (v_values)
+ g_variant_unref(v_values);
+ if (v_attrs)
+ g_variant_unref(v_attrs);
break;
}
case ZBLIB_ZCL_GLOBAL_NOTI_CONFIG_REPORT_RSP: {