Fix memory leak in boardd.cc (#1321)

* fix memory leak

* dd
old-commit-hash: 9bcd5faa70a868de5272b17c9bc3693bf89044d0
This commit is contained in:
DeanLee
2020-04-07 00:13:34 +08:00
committed by GitHub
parent e43b40540d
commit 6ff6ce4d79
+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);