[ccan] [PATCH 6/7] ccanlint: Fix leak in do_reduce_features()
David Gibson
david at gibson.dropbear.id.au
Mon Apr 3 21:11:11 AEST 2017
options_avail and options_used get freed, but options does not.
Found by Coverity scan.
Signed-off-by: David Gibson <david at 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
More information about the ccan
mailing list