From 4edd268b3d6c2b41c879d3f96de711b4a7e07ac1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 20 Aug 2018 14:57:04 -0400 Subject: [PATCH] Test fix: size schedule leaked in a schedule API test case MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Coverity Scan (1395071 and 1395073 Resource leak) Signed-off-by: Jérémie Galarneau --- tests/regression/tools/rotation/schedule_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regression/tools/rotation/schedule_api.c b/tests/regression/tools/rotation/schedule_api.c index 0ab367152..491fe7b90 100644 --- a/tests/regression/tools/rotation/schedule_api.c +++ b/tests/regression/tools/rotation/schedule_api.c @@ -109,6 +109,7 @@ void test_add_null_session(void) status = lttng_session_add_rotation_schedule(NULL, size_schedule); ok(status == LTTNG_ROTATION_STATUS_INVALID, "NULL session name rejected by lttng_session_add_rotation_schedule()"); + lttng_rotation_schedule_destroy(size_schedule); } void test_add_null_schedule(void) @@ -156,6 +157,7 @@ void test_remove_null_session(void) status = lttng_session_remove_rotation_schedule(NULL, size_schedule); ok(status == LTTNG_ROTATION_STATUS_INVALID, "NULL session name rejected by lttng_session_remove_rotation_schedule()"); + lttng_rotation_schedule_destroy(size_schedule); } void test_remove_null_schedule(void) -- 2.34.1