From: Mathieu Desnoyers Date: Wed, 22 Jun 2016 20:21:43 +0000 (-0400) Subject: Fix: tests: invoke destroy APIs for queues/stacks X-Git-Tag: v0.8.10~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2018052bb2c5e6628993f3b0576f2b1708c53129;p=userspace-rcu.git Fix: tests: invoke destroy APIs for queues/stacks Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/test_urcu_lfs.c b/tests/benchmark/test_urcu_lfs.c index 2101532..76bd454 100644 --- a/tests/benchmark/test_urcu_lfs.c +++ b/tests/benchmark/test_urcu_lfs.c @@ -512,6 +512,7 @@ int main(int argc, char **argv) tot_successful_dequeues + end_dequeues); free_all_cpu_call_rcu_data(); + cds_lfs_destroy(&s); free(count_enqueuer); free(count_dequeuer); free(tid_enqueuer); diff --git a/tests/benchmark/test_urcu_wfcq.c b/tests/benchmark/test_urcu_wfcq.c index ece2de8..e233427 100644 --- a/tests/benchmark/test_urcu_wfcq.c +++ b/tests/benchmark/test_urcu_wfcq.c @@ -260,6 +260,7 @@ static void do_test_splice(enum test_sync sync) URCU_TLS(nr_successful_dequeues)++; URCU_TLS(nr_dequeues)++; } + cds_wfcq_destroy(&tmp_head, &tmp_tail); } static void *thr_dequeuer(void *_count) @@ -575,6 +576,7 @@ int main(int argc, char **argv) tot_dequeue_last); retval = 1; } + cds_wfcq_destroy(&head, &tail); free(count_enqueuer); free(count_dequeuer); free(tid_enqueuer); diff --git a/tests/benchmark/test_urcu_wfq.c b/tests/benchmark/test_urcu_wfq.c index 979f765..20f7693 100644 --- a/tests/benchmark/test_urcu_wfq.c +++ b/tests/benchmark/test_urcu_wfq.c @@ -395,6 +395,7 @@ int main(int argc, char **argv) tot_successful_enqueues, tot_successful_dequeues + end_dequeues); + cds_wfq_destroy(&q); free(count_enqueuer); free(count_dequeuer); free(tid_enqueuer); diff --git a/tests/benchmark/test_urcu_wfs.c b/tests/benchmark/test_urcu_wfs.c index e6dfe51..358e668 100644 --- a/tests/benchmark/test_urcu_wfs.c +++ b/tests/benchmark/test_urcu_wfs.c @@ -559,6 +559,7 @@ int main(int argc, char **argv) tot_pop_last); retval = 1; } + cds_wfs_destroy(&s); free(count_enqueuer); free(count_dequeuer); free(tid_enqueuer);