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 c2199d36181575177c75c1502b11643e4ab1f413..1aaffb00a92cd69c59448f75c0b6b037cb49eb99 100644 (file)
@@ -75,5 +75,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
index 07b21698c99b66e262d3635e970848b2eed5f7bb..68c17e4065096f147db7e20b795015feea748a98 100644 (file)
@@ -71,5 +71,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
index e70ce150808704df051b75097a8f61edd370c089..3b048f4559974683bdf3a6c92b416e7a4ad57b2c 100644 (file)
@@ -68,5 +68,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
index c2783510ce1e0d8311833455fdc3db3b91b55133..742a6869e9fd2c8b0c054d91e130e59f733a5a3e 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 377f017ea3b4dda50312e40ed7ae6fab8e4b29ef..cfc9963e6040659f0bfa3de984b4a0d0266ee003 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 bb2e51229a7257f90064dcd3d1e05b25c24e4190..f11edcbc9f34d44840664d79f2aded42ad3005e2 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 4cdec0a3b36b15078a6993805347e60071c86c56..09edd3dc8a268a337b52b4482955323574fd6373 100644 (file)
@@ -71,5 +71,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfs_destroy(&mystack);
        return ret;
 }
index 766f07f1eb09226b1452dd9fc73d65f5f97a601a..c5681ce55c0ccfcd4e4aa988a2b4fc53c0246e5d 100644 (file)
@@ -75,5 +75,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_wfs_destroy(&mystack);
        return ret;
 }
index a4727a9a86f9d3c245c8eebdc3e4419a6ddef153..2daaef51be4462beb2812a1ee27a42c1efc6061c 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.027961 seconds and 4 git commands to generate.