projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: fix: leak of rate policy in rate policy unit tests
[lttng-tools.git]
/
tests
/
unit
/
test_rate_policy.cpp
diff --git
a/tests/unit/test_rate_policy.cpp
b/tests/unit/test_rate_policy.cpp
index 95c095f5a0bd6720a25663e6a28d679fd43a5349..6977ea8025ee17bbe4adca451418f65b461987c7 100644
(file)
--- a/
tests/unit/test_rate_policy.cpp
+++ b/
tests/unit/test_rate_policy.cpp
@@
-131,6
+131,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_a);
lttng_rate_policy_destroy(policy_b);
lttng_rate_policy_destroy(policy_c);
+ lttng_rate_policy_destroy(policy_from_buffer);
lttng_payload_reset(&payload);
}
lttng_payload_reset(&payload);
}
@@
-240,6
+241,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_a);
lttng_rate_policy_destroy(policy_b);
lttng_rate_policy_destroy(policy_c);
+ lttng_rate_policy_destroy(policy_from_buffer);
lttng_payload_reset(&payload);
}
lttng_payload_reset(&payload);
}
This page took
0.02292 seconds
and
4
git commands to generate.