You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2021/03/26 15:32:48 UTC
[qpid-dispatch] branch master updated: DISPATCH-1962 Fix leak in
run_unit_tests.c (#1049)
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new 8530155 DISPATCH-1962 Fix leak in run_unit_tests.c (#1049)
8530155 is described below
commit 8530155f394d92015c50bba4001f190bbffcb073
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Fri Mar 26 16:32:40 2021 +0100
DISPATCH-1962 Fix leak in run_unit_tests.c (#1049)
---
tests/core_timer_test.c | 1 +
tests/lsan.supp | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/tests/core_timer_test.c b/tests/core_timer_test.c
index 9a31057..37df5be 100644
--- a/tests/core_timer_test.c
+++ b/tests/core_timer_test.c
@@ -170,6 +170,7 @@ static char* test_core_timer(void *context)
//
for (long i = 0; i < 5; i++)
qdr_core_timer_free_CT(core, timers[i]);
+ free(core);
return 0;
}
diff --git a/tests/lsan.supp b/tests/lsan.supp
index adbec42..8af082f 100644
--- a/tests/lsan.supp
+++ b/tests/lsan.supp
@@ -33,9 +33,6 @@ leak:^pgetaddrinfo$
# to be triaged; system_tests_link_routes
leak:^pni_init_default_logger$
-# Ignore test code
-leak:run_unit_tests.c
-
# DISPATCH-1844 - shutdown leak
leak:sys_mutex
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org