- Removing potential risk of memory corruption due to
dangling pointer reference.
Change-Id: I9fd0749d42c14aa4bed830375b882525303172d5
Signed-off-by: saerome kim <saerome.kim@samsung.com>
NOT_USED(data_type);
RETV_IF(NULL == h, ZIGBEE_ERROR_INVALID_PARAMETER);
- if (h->change)
+ if (h->change) {
free(h->change);
+ h->change = NULL;
+ }
len = zb_zcl_get_data_size(type);
data_type = zb_zcl_get_analog_or_discret(type);