sdlog2: free buffer on exit

This commit is contained in:
Anton Babushkin 2013-08-22 18:23:42 +02:00
parent 41fac46ff0
commit 330908225e
1 changed files with 2 additions and 0 deletions

View File

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