Skip to content

Commit

Permalink
Free custom fc macros
Browse files Browse the repository at this point in the history
Do not leak the string list of custom defined fc macros.
  • Loading branch information
cgzones committed Dec 21, 2024
1 parent 827918e commit 6e9eb18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6e9eb18

Please sign in to comment.