From 1e5a62e1b32b2e1189ff85d5ed46f69fd7f2bdaa Mon Sep 17 00:00:00 2001 From: "ethan.du" Date: Tue, 16 Jun 2020 10:01:29 +0800 Subject: [PATCH] add mem free in dm sample ex --- samples/dev_model/dev_model_sample_ex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/dev_model/dev_model_sample_ex.c b/samples/dev_model/dev_model_sample_ex.c index 09880f9..35e4b58 100644 --- a/samples/dev_model/dev_model_sample_ex.c +++ b/samples/dev_model/dev_model_sample_ex.c @@ -170,6 +170,7 @@ int command_cb(const char *request_id, const char *identifier, const char *input return FAILURE_RET; } node_cmd_input_set_temp_correction_temp_correction.value.int32_value = atoi(temp_modify); + HAL_Free(temp_modify); if((node_cmd_input_set_temp_correction_temp_correction.value.int32_value <= 10) && (node_cmd_input_set_temp_correction_temp_correction.value.int32_value >= -10))