mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 16:00:35 +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