Commit 6251b771 authored by David Gibson's avatar David Gibson

ccanlint: Fix leak in do_reduce_features()

options_avail and options_used get freed, but options does not.

Found by Coverity scan.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent ed7b9262
...@@ -181,6 +181,7 @@ static void do_reduce_features(struct manifest *m, ...@@ -181,6 +181,7 @@ static void do_reduce_features(struct manifest *m,
err(1, "Creating reduced-features/config.h"); err(1, "Creating reduced-features/config.h");
if (!write_all(fd, hdr, strlen(hdr))) if (!write_all(fd, hdr, strlen(hdr)))
err(1, "Writing reduced-features/config.h"); err(1, "Writing reduced-features/config.h");
htable_option_free(options);
close(fd); close(fd);
features_were_reduced = true; features_were_reduced = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment