Fixed memory leak in DPI function calls

This commit is contained in:
Clifford Wolf 2014-08-21 13:09:47 +02:00
parent 4f35a81ad9
commit 490d7a5bf2
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}