From: Clifford Wolf Date: Thu, 21 Aug 2014 11:09:47 +0000 (+0200) Subject: Fixed memory leak in DPI function calls X-Git-Tag: yosys-0.4~226 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=490d7a5bf2062481dfda656de86bfbeca83c080d;p=yosys.git Fixed memory leak in DPI function calls --- 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; }