Fix: tests: invoke destroy APIs for queues/stacks
[urcu.git] / tests / benchmark / test_urcu_wfs.c
index f64367112020f551ed3ce3d87261537283c78e07..358e668b5ec0f84e7234f1344f7251d4af918ccc 100644 (file)
@@ -479,8 +479,10 @@ int main(int argc, char **argv)
 
        for (i = 0; i < duration; i++) {
                sleep(1);
-               if (verbose_mode)
-                       (void) write(1, ".", 1);
+               if (verbose_mode) {
+                       fwrite(".", sizeof(char), 1, stdout);
+                       fflush(stdout);
+               }
        }
 
        test_stop_enqueue = 1;
@@ -557,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.0236 seconds and 4 git commands to generate.