Merge "fix a memory leak." am: a24fcc412f
am: da95482f52
Change-Id: I0cb045e807da91b7e1090ce67eda0f55b1cd801b
This commit is contained in:
commit
e936ee515c
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ static void print_property(const vehicle_prop_value_t *data) {
|
|||
memcpy(ascii_out, data->value.str_value.data, data->value.str_value.len);
|
||||
ascii_out[data->value.str_value.len] = '\0';
|
||||
printf("Value Type: STRING %s\n", ascii_out);
|
||||
free(ascii_out);
|
||||
break;
|
||||
case VEHICLE_VALUE_TYPE_BYTES:
|
||||
printf("Value type: BYTES\n Size: %d", data->value.bytes_value.len);
|
||||
|
|
Loading…
Reference in a new issue