Merge "fix a memory leak." am: a24fcc412f

am: da95482f52

Change-Id: I0cb045e807da91b7e1090ce67eda0f55b1cd801b
This commit is contained in:
Yunlian Jiang 2016-11-23 04:28:25 +00:00 committed by android-build-merger
commit e936ee515c

View file

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