Fix memory leak in boardd.cc (#1321)

* fix memory leak

* dd
This commit is contained in:
DeanLee
2020-04-07 00:13:34 +08:00
committed by GitHub
parent 41bb3ac7ca
commit 9bcd5faa70
+1
View File
@@ -104,6 +104,7 @@ void *safety_setter_thread(void *s) {
usleep(100*1000);
}
LOGW("got CarVin %s", value_vin);
free(value_vin);
// VIN query done, stop listening to OBDII
pthread_mutex_lock(&usb_lock);