options_avail and options_used get freed, but options does not.

Found by Coverity scan.

Signed-off-by: David Gibson <da...@gibson.dropbear.id.au>
---
 tools/ccanlint/tests/reduce_features.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/ccanlint/tests/reduce_features.c 
b/tools/ccanlint/tests/reduce_features.c
index b49922b..34a8970 100644
--- a/tools/ccanlint/tests/reduce_features.c
+++ b/tools/ccanlint/tests/reduce_features.c
@@ -181,6 +181,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;
 }
-- 
2.9.3

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

Reply via email to