diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-06-30 19:51:14 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-07-03 15:27:47 +0000 |
commit | 58c4bc68c81ede69d3fcdd7531760bdc1355b14f (patch) | |
tree | 5cc0d6becbdc172f9acccac3dd8870f110ee46bd /tests/ecu/ecu_fr_test.c | |
parent | b29b9810922829bab4aefd3c888ccef683e8fc3d (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.c | 3 |
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; } |