mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Fixed memory leak in DPI function calls
This commit is contained in:
parent
4f35a81ad9
commit
490d7a5bf2
|
@ -1467,6 +1467,10 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
}
|
}
|
||||||
|
|
||||||
newNode = dpi_call(rtype, fname, argtypes, args);
|
newNode = dpi_call(rtype, fname, argtypes, args);
|
||||||
|
|
||||||
|
for (auto arg : args)
|
||||||
|
delete arg;
|
||||||
|
|
||||||
goto apply_newNode;
|
goto apply_newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue