Tests: fix: leak of rate policy in rate policy unit tests
[lttng-tools.git] / tests / unit / test_rate_policy.c
index fcb27733c273020e2e010ba5a2b623d10edace62..2f4a7f5d6d56e831d92cac3148fd8dfcc6d72685 100644 (file)
@@ -132,6 +132,7 @@ static void test_rate_policy_every_n(void)
        lttng_rate_policy_destroy(policy_a);
        lttng_rate_policy_destroy(policy_b);
        lttng_rate_policy_destroy(policy_c);
+       lttng_rate_policy_destroy(policy_from_buffer);
        lttng_payload_reset(&payload);
 }
 
@@ -241,6 +242,7 @@ static void test_rate_policy_once_after_n(void)
        lttng_rate_policy_destroy(policy_a);
        lttng_rate_policy_destroy(policy_b);
        lttng_rate_policy_destroy(policy_c);
+       lttng_rate_policy_destroy(policy_from_buffer);
        lttng_payload_reset(&payload);
 }
 
This page took 0.022635 seconds and 4 git commands to generate.