]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: finalize LOG when skipping in unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Mar 2026 11:24:40 +0000 (12:24 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Mar 2026 12:46:27 +0000 (13:46 +0100)
This fixes a leak reported by valgrind.

test/unit/test.c

index 12c4bd8ab77453d54c35349cbda0ccf801d5121a..1bf3421b40ab2058e927530b575d8274a869ebc7 100644 (file)
@@ -36,6 +36,8 @@ TST_Fail(int line)
 void
 TST_Skip(int line)
 {
+  LOG_Finalise();
+
   printf("SKIP (on line %d)\n", line);
   exit(0);
 }