Fix memory leak in boardd.cc (#1321)

* fix memory leak

* dd
pull/1324/head
DeanLee 2020-04-07 00:13:34 +08:00 committed by GitHub
parent 41bb3ac7ca
commit 9bcd5faa70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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