summaryrefslogtreecommitdiff
path: root/frontends/ast
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-21 13:09:47 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-21 13:09:47 +0200
commit490d7a5bf2062481dfda656de86bfbeca83c080d (patch)
tree9d63a6e0401ba86e74d96a56ca110b3911b88150 /frontends/ast
parent4f35a81ad92487cad54cef799759a7ad6ffbff70 (diff)
Fixed memory leak in DPI function calls
Diffstat (limited to 'frontends/ast')
-rw-r--r--frontends/ast/simplify.cc4
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;
}