mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +08:00
sdlog2: free buffer on exit
This commit is contained in:
@@ -1182,6 +1182,8 @@ int sdlog2_thread_main(int argc, char *argv[])
|
||||
pthread_mutex_destroy(&logbuffer_mutex);
|
||||
pthread_cond_destroy(&logbuffer_cond);
|
||||
|
||||
free(lb.data);
|
||||
|
||||
warnx("exiting.");
|
||||
|
||||
thread_running = false;
|
||||
|
||||
Reference in New Issue
Block a user