Fix: tests: invoke destroy APIs for queues/stacks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 20:21:43 +0000 (16:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 20:21:43 +0000 (16:21 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/test_urcu_lfs.c
tests/benchmark/test_urcu_wfcq.c
tests/benchmark/test_urcu_wfq.c
tests/benchmark/test_urcu_wfs.c

index 1d2dc84b50dadce681d3e4da585889e4c06f5a44..9670ae557af206e0b3da51d1a9b35981f4c67065 100644 (file)
@@ -516,6 +516,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);
index ece2de88cb83ba96ff33fedabe393bc0f539a4c9..e2334275e593f96de117a037949181059f09d290 100644 (file)
@@ -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);
index 979f765dc1e357c00f1f20534844f2014af2312a..20f7693e284126c7675ef621c5427f2d8b419a30 100644 (file)
@@ -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);
index e6dfe518b839a884d92729e591a9ec31f83d81b6..358e668b5ec0f84e7234f1344f7251d4af918ccc 100644 (file)
@@ -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);
This page took 0.027451 seconds and 4 git commands to generate.