diff options
Diffstat (limited to 'aclk/aclk_alarm_api.c')
-rw-r--r-- | aclk/aclk_alarm_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aclk/aclk_alarm_api.c b/aclk/aclk_alarm_api.c index 0db599be20..a181eb291f 100644 --- a/aclk/aclk_alarm_api.c +++ b/aclk/aclk_alarm_api.c @@ -24,7 +24,8 @@ void aclk_send_alarm_log_entry(struct alarm_log_entry *log_entry) aclk_send_bin_msg(payload, payload_size, ACLK_TOPICID_ALARM_LOG, "AlarmLogEntry"); - freez(payload); + if (!use_mqtt_5) + freez(payload); } void aclk_send_provide_alarm_cfg(struct provide_alarm_configuration *cfg) |