Fix: examples: use destroy API for queues/stacks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 20:46:00 +0000 (16:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 20:46:00 +0000 (16:46 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/lfstack/cds_lfs_pop_all_blocking.c
doc/examples/lfstack/cds_lfs_pop_blocking.c
doc/examples/lfstack/cds_lfs_push.c
doc/examples/wfcqueue/cds_wfcq_dequeue.c
doc/examples/wfcqueue/cds_wfcq_enqueue.c
doc/examples/wfcqueue/cds_wfcq_splice.c
doc/examples/wfstack/cds_wfs_pop.c
doc/examples/wfstack/cds_wfs_pop_all_blocking.c
doc/examples/wfstack/cds_wfs_push.c

index c2199d3..1aaffb0 100644 (file)
@@ -75,5 +75,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
index 07b2169..68c17e4 100644 (file)
@@ -71,5 +71,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
index e70ce15..3b048f4 100644 (file)
@@ -68,5 +68,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
index c278351..742a686 100644 (file)
@@ -75,5 +75,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfcq_destroy(&myqueue_head, &myqueue_tail);
        return ret;
 }
index 377f017..cfc9963 100644 (file)
@@ -68,5 +68,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfcq_destroy(&myqueue_head, &myqueue_tail);
        return ret;
 }
index bb2e512..f11edcb 100644 (file)
@@ -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;
 }
index 4cdec0a..09edd3d 100644 (file)
@@ -71,5 +71,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfs_destroy(&mystack);
        return ret;
 }
index 766f07f..c5681ce 100644 (file)
@@ -75,5 +75,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfs_destroy(&mystack);
        return ret;
 }
index a4727a9..2daaef5 100644 (file)
@@ -68,5 +68,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfs_destroy(&mystack);
        return ret;
 }
This page took 0.057753 seconds and 4 git commands to generate.