| commit | 2156b8039ec5377e38cc7054df9bad8fd512a3fc | [log] [tgz] |
|---|---|---|
| author | Mariusz Glebocki <mglebocki@antmicro.com> | Mon Jun 12 02:16:40 2023 +0200 |
| committer | Mariusz Glebocki <mglebocki@antmicro.com> | Mon Jun 12 02:16:40 2023 +0200 |
| tree | 36f4a5e916db9e2ecacc14b6eb95aa0cf27f0de8 | |
| parent | 3cda3ceea920863fc31aeac81edbce551ddc2314 [diff] |
Fix memory leak in process_value().
diff --git a/systemverilog-plugin/UhdmAst.cc b/systemverilog-plugin/UhdmAst.cc index 1a2635d..06b4f84 100644 --- a/systemverilog-plugin/UhdmAst.cc +++ b/systemverilog-plugin/UhdmAst.cc
@@ -1535,6 +1535,7 @@ if (is_signed) { strValType += "s"; } + vpi_release_handle(typespec_h); } if (val.format) { // Needed to handle parameter nodes without typespecs and constants switch (val.format) {