mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +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_mutex_destroy(&logbuffer_mutex);
|
||||||
pthread_cond_destroy(&logbuffer_cond);
|
pthread_cond_destroy(&logbuffer_cond);
|
||||||
|
|
||||||
|
free(lb.data);
|
||||||
|
|
||||||
warnx("exiting.");
|
warnx("exiting.");
|
||||||
|
|
||||||
thread_running = false;
|
thread_running = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user