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 1d2dc84..9670ae5 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 ece2de8..e233427 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 979f765..20f7693 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 e6dfe51..358e668 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.05681 seconds and 4 git commands to generate.