From: Mathieu Desnoyers Date: Wed, 22 Jun 2016 20:46:00 +0000 (-0400) Subject: Fix: examples: use destroy API for queues/stacks X-Git-Tag: v0.8.10~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f018edde053ab8a4c16ea89433ff25c60d002c67;p=userspace-rcu.git Fix: examples: use destroy API for queues/stacks Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/lfstack/cds_lfs_pop_all_blocking.c b/doc/examples/lfstack/cds_lfs_pop_all_blocking.c index c2199d3..1aaffb0 100644 --- a/doc/examples/lfstack/cds_lfs_pop_all_blocking.c +++ b/doc/examples/lfstack/cds_lfs_pop_all_blocking.c @@ -75,5 +75,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_lfs_destroy(&mystack); return ret; } diff --git a/doc/examples/lfstack/cds_lfs_pop_blocking.c b/doc/examples/lfstack/cds_lfs_pop_blocking.c index 07b2169..68c17e4 100644 --- a/doc/examples/lfstack/cds_lfs_pop_blocking.c +++ b/doc/examples/lfstack/cds_lfs_pop_blocking.c @@ -71,5 +71,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_lfs_destroy(&mystack); return ret; } diff --git a/doc/examples/lfstack/cds_lfs_push.c b/doc/examples/lfstack/cds_lfs_push.c index e70ce15..3b048f4 100644 --- a/doc/examples/lfstack/cds_lfs_push.c +++ b/doc/examples/lfstack/cds_lfs_push.c @@ -68,5 +68,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_lfs_destroy(&mystack); return ret; } diff --git a/doc/examples/wfcqueue/cds_wfcq_dequeue.c b/doc/examples/wfcqueue/cds_wfcq_dequeue.c index c278351..742a686 100644 --- a/doc/examples/wfcqueue/cds_wfcq_dequeue.c +++ b/doc/examples/wfcqueue/cds_wfcq_dequeue.c @@ -75,5 +75,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfcq_destroy(&myqueue_head, &myqueue_tail); return ret; } diff --git a/doc/examples/wfcqueue/cds_wfcq_enqueue.c b/doc/examples/wfcqueue/cds_wfcq_enqueue.c index 377f017..cfc9963 100644 --- a/doc/examples/wfcqueue/cds_wfcq_enqueue.c +++ b/doc/examples/wfcqueue/cds_wfcq_enqueue.c @@ -68,5 +68,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfcq_destroy(&myqueue_head, &myqueue_tail); return ret; } diff --git a/doc/examples/wfcqueue/cds_wfcq_splice.c b/doc/examples/wfcqueue/cds_wfcq_splice.c index bb2e512..f11edcb 100644 --- a/doc/examples/wfcqueue/cds_wfcq_splice.c +++ b/doc/examples/wfcqueue/cds_wfcq_splice.c @@ -105,5 +105,6 @@ int main(int argc, char **argv) print_queue(&head_A, &tail_A, "queue A content after splice"); print_queue(&head_B, &tail_B, "queue B content after splice"); end: + cds_wfcq_destroy(&head_A, &tail_A); return ret; } diff --git a/doc/examples/wfstack/cds_wfs_pop.c b/doc/examples/wfstack/cds_wfs_pop.c index 4cdec0a..09edd3d 100644 --- a/doc/examples/wfstack/cds_wfs_pop.c +++ b/doc/examples/wfstack/cds_wfs_pop.c @@ -71,5 +71,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfs_destroy(&mystack); return ret; } diff --git a/doc/examples/wfstack/cds_wfs_pop_all_blocking.c b/doc/examples/wfstack/cds_wfs_pop_all_blocking.c index 766f07f..c5681ce 100644 --- a/doc/examples/wfstack/cds_wfs_pop_all_blocking.c +++ b/doc/examples/wfstack/cds_wfs_pop_all_blocking.c @@ -75,5 +75,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfs_destroy(&mystack); return ret; } diff --git a/doc/examples/wfstack/cds_wfs_push.c b/doc/examples/wfstack/cds_wfs_push.c index a4727a9..2daaef5 100644 --- a/doc/examples/wfstack/cds_wfs_push.c +++ b/doc/examples/wfstack/cds_wfs_push.c @@ -68,5 +68,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfs_destroy(&mystack); return ret; }