Update sensor.c

This commit is contained in:
guo 2021-12-24 10:10:59 +08:00 committed by GitHub
parent 51569a068a
commit dcce9886e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ int rt_hw_sensor_register(rt_sensor_t sensor,
return result;
}
rt_free(device_name);
LOG_I("rt_sensor[%s] init success", device_name);
rt_free(device_name);
return RT_EOK;
}