Merge pull request #34 from ucloud/bugfix_add_mem_free_in_dm_sample_ex

add mem free in dm sample ex
This commit is contained in:
ethanDu1 2020-06-16 10:02:21 +08:00 committed by GitHub
commit 507e97f176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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))