We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d113ba2 commit 8e03dd0Copy full SHA for 8e03dd0
libraries/Zigbee/src/ZigbeeEP.cpp
@@ -263,7 +263,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
263
}
264
if (attribute->id == ESP_ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID && attribute->data.type == ESP_ZB_ZCL_ATTR_TYPE_CHAR_STRING && attribute->data.value) {
265
zbstring_t *zbstr = (zbstring_t *)attribute->data.value;
266
- char *_read_model = (char *)malloc(zbstr->len + 1);
+ _read_model = (char *)malloc(zbstr->len + 1);
267
if (_read_model == NULL) {
268
log_e("Failed to allocate memory for model data");
269
xSemaphoreGive(lock);
0 commit comments