X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Freduce_features.c;h=34a897061bb4fbe16c69800bf699f930d753502b;hp=b49922b5d11b27b310b0b843870ee2be8310ed4a;hb=HEAD;hpb=1ddb7420f1ac53c060aec62e26702d1d7029fc54 diff --git a/tools/ccanlint/tests/reduce_features.c b/tools/ccanlint/tests/reduce_features.c index b49922b5..89e61595 100644 --- a/tools/ccanlint/tests/reduce_features.c +++ b/tools/ccanlint/tests/reduce_features.c @@ -37,7 +37,8 @@ static bool option_cmp(const char *name1, const char *name2) return streq(name1, name2); } -HTABLE_DEFINE_TYPE(char, option_name, option_hash, option_cmp, htable_option); +HTABLE_DEFINE_NODUPS_TYPE(char, option_name, option_hash, option_cmp, + htable_option); static struct htable_option *htable_option_new(void) { @@ -181,6 +182,7 @@ static void do_reduce_features(struct manifest *m, err(1, "Creating reduced-features/config.h"); if (!write_all(fd, hdr, strlen(hdr))) err(1, "Writing reduced-features/config.h"); + htable_option_free(options); close(fd); features_were_reduced = true; }