aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ecu/ecu_fr_test.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-06-30 19:51:14 +0700
committerHarald Welte <laforge@gnumonks.org>2018-07-03 15:27:47 +0000
commit58c4bc68c81ede69d3fcdd7531760bdc1355b14f (patch)
tree5cc0d6becbdc172f9acccac3dd8870f110ee46bd /tests/ecu/ecu_fr_test.c
parentb29b9810922829bab4aefd3c888ccef683e8fc3d (diff)
tests: make both Valgrind and LeakSanitizer happy
The talloc_enable_null_tracking() actually allocates a new talloc context, which makes both Valgrind and LeakSanitizer angry. This context should be freed by the talloc_disable_null_tracking(). Change-Id: Ia660d2fdac720f685c0186720d0a476d7e9468be
Diffstat (limited to 'tests/ecu/ecu_fr_test.c')
-rw-r--r--tests/ecu/ecu_fr_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ecu/ecu_fr_test.c b/tests/ecu/ecu_fr_test.c
index 372df25..609112f 100644
--- a/tests/ecu/ecu_fr_test.c
+++ b/tests/ecu/ecu_fr_test.c
@@ -143,5 +143,8 @@ int main(int argc, char **argv)
/* Make sure we have no memleaks */
talloc_report_depth_cb(NULL, 0, 10, &talloc_ctx_walk_cb, NULL);
+ /* Make both Valgrind and LeakSanitizer happy */
+ talloc_disable_null_tracking();
+
return 0;
}