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) |
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 19f1d055..5cf64310 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; } |