Message ID | 20211115081526.384856-3-lkml@jv-coder.de |
---|---|
State | Accepted |
Headers | show |
Series | [1/3] realtime/librttest: Fix functions with empty parameters | expand |
Hi! Pushed, thanks.
diff --git a/testcases/realtime/lib/librttest.c b/testcases/realtime/lib/librttest.c index 89e2bfc6e..eaa623b72 100644 --- a/testcases/realtime/lib/librttest.c +++ b/testcases/realtime/lib/librttest.c @@ -226,6 +226,8 @@ int rt_init_long(const char *options, const struct option *longopts, calibrate_busyloop(); + free(all_options); + /* * atexit() order matters here - buffer_print() will be called before * buffer_fini(). @@ -378,6 +380,7 @@ void join_thread(int i) if (t->pthread) pthread_join(t->pthread, NULL); list_del(&t->_threads); + free(t); } } @@ -397,6 +400,7 @@ void join_threads(void) if (p->pthread) pthread_join(p->pthread, NULL); list_del(&p->_threads); + free(p); } }