]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/test/run-clash.c
htable: fix vanishing entries properly.
[ccan] / ccan / htable / test / run-clash.c
index 0328c352341667ae37dd7d305b8133227ecaf3a3..a4e5d38a2bc066ecfa50d7609cd129aa9fab245c 100644 (file)
@@ -24,6 +24,7 @@ int main(void)
                        htable_add(&ht, hash((void *)i, NULL), (void *)i);
                        htable_add(&ht, hash((void *)j, NULL), (void *)j);
                        ok1(htable_check(&ht, "test"));
+                       htable_clear(&ht);
                }
        }
        return exit_status();