forked from Archive/PX4-Autopilot
sdlog2: free buffer on exit
This commit is contained in:
parent
41fac46ff0
commit
330908225e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue