From 6e9eb182ab7b2d4eb658dea544b05f5f5cb41c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 21 Dec 2024 18:03:10 +0100 Subject: [PATCH] Free custom fc macros Do not leak the string list of custom defined fc macros. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index dbcd2690..6054ab9c 100644 --- a/src/main.c +++ b/src/main.c @@ -654,6 +654,7 @@ int main(int argc, char **argv) free(security_classes_path); free(modules_conf_path); free_string_list(global_cond_files); + free_string_list(custom_fc_macros); return EX_CONFIG; } @@ -698,6 +699,7 @@ int main(int argc, char **argv) free_file_list(fc_files); free_file_list(context_te_files); free_file_list(context_if_files); + free_string_list(custom_fc_macros); free_selint_config(&ccd); if (fail_on_finding && found_issue && exit_code == EX_OK) {