Skip to content

Commit

Permalink
Merge pull request #4434 from mikesinouye/asan
Browse files Browse the repository at this point in the history
Fix memory leak in verific file parsing.
  • Loading branch information
mmicko authored Jun 8, 2024
2 parents 8278364 + b0ab1cf commit 078c14f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3510,6 +3510,12 @@ struct VerificPass : public Pass {
verific_error_msg.clear();
log_cmd_error("Reading Verilog/SystemVerilog sources failed.\n");
}
char* fn;
int i = 0;

FOREACH_ARRAY_ITEM(&file_names, i, fn) {
free(fn);
}
set_modules_to_blackbox(map, work, flag_lib);
verific_import_pending = true;
goto check_error;
Expand Down

0 comments on commit 078c14f

Please sign in to comment.