| commit | 6c2a301942220dfcb7d2969a5a57cc3dc97fb65e | [log] [tgz] |
|---|---|---|
| author | Mariusz Glebocki <mglebocki@antmicro.com> | Mon Jun 12 04:22:48 2023 +0200 |
| committer | Mariusz Glebocki <mglebocki@antmicro.com> | Mon Jun 12 04:22:48 2023 +0200 |
| tree | c7949fa355019b342ecc5d48dd90e745b6b6113a | |
| parent | 43f18026a7b5525e73adb92dea176899367c1fdd [diff] |
Fix memory leak in process_case_item().
diff --git a/systemverilog-plugin/UhdmAst.cc b/systemverilog-plugin/UhdmAst.cc index dcf9757..36c5080 100644 --- a/systemverilog-plugin/UhdmAst.cc +++ b/systemverilog-plugin/UhdmAst.cc
@@ -4201,8 +4201,7 @@ current_node->children.push_back(node); } } - // FIXME: If we release the handle here, visiting vpiStmt fails for some reason - // vpi_release_handle(expr_h); + vpi_release_handle(expr_h); } vpi_release_handle(itr); if (current_node->children.empty()) {