diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-21 13:09:47 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-21 13:09:47 +0200 |
commit | 490d7a5bf2062481dfda656de86bfbeca83c080d (patch) | |
tree | 9d63a6e0401ba86e74d96a56ca110b3911b88150 /frontends | |
parent | 4f35a81ad92487cad54cef799759a7ad6ffbff70 (diff) | |
download | yosys-490d7a5bf2062481dfda656de86bfbeca83c080d.tar.gz yosys-490d7a5bf2062481dfda656de86bfbeca83c080d.tar.bz2 yosys-490d7a5bf2062481dfda656de86bfbeca83c080d.zip |
Fixed memory leak in DPI function calls
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/simplify.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 19f1d0554..5cf64310b 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1467,6 +1467,10 @@ skip_dynamic_range_lvalue_expansion:; } newNode = dpi_call(rtype, fname, argtypes, args); + + for (auto arg : args) + delete arg; + goto apply_newNode; } |