rculfhash test: add missing free
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Jul 2011 17:37:19 +0000 (13:37 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Jul 2011 17:37:19 +0000 (13:37 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_hash.c

index 44b9531b2fb8080b1a7e5bf02320669374f5bc6e..92816674dc97a99bc4c96f4b7cf6268706eea569 100644 (file)
@@ -38,7 +38,7 @@
 #endif
 
 #define HASH_SIZE      32
-#define RAND_POOL      1000
+#define RAND_POOL      10000
 
 /* Make this big enough to include the POWER5+ L3 cacheline size of 256B */
 #define CACHE_LINE_SIZE 4096
@@ -407,9 +407,10 @@ void *thr_writer(void *_count)
                                (void *) 0x42);
                        ret = ht_add_unique(test_ht, node);
                        rcu_read_unlock();
-                       if (ret)
+                       if (ret) {
+                               free(node);
                                nr_addexist++;
-                       else
+                       else
                                nr_add++;
                } else {
                        /* May delete */
This page took 0.026766 seconds and 4 git commands to generate.