From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> The unit tests opens a handle via tracecmd_open() but fails to close it causing the memory leak detector to trigger on it. Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- utest/tracecmd-utest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utest/tracecmd-utest.c b/utest/tracecmd-utest.c index 69dcb4be..34fed1e1 100644 --- a/utest/tracecmd-utest.c +++ b/utest/tracecmd-utest.c @@ -438,6 +438,8 @@ static void test_trace_library_read(void) ret = tracecmd_iterate_events(handle, NULL, 0, read_events, &data); CU_TEST(ret == 0); + tracecmd_close(handle); + CU_TEST(data.counter > 0); trace_seq_destroy(&data.seq); } -- 2.35.1