aboutsummaryrefslogtreecommitdiff
path: root/scripts/gendispatch.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gendispatch.lua')
-rw-r--r--scripts/gendispatch.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/gendispatch.lua b/scripts/gendispatch.lua
index 2846aece5d..12d6261b5a 100644
--- a/scripts/gendispatch.lua
+++ b/scripts/gendispatch.lua
@@ -293,14 +293,8 @@ for i = 1, #functions do
if fn.return_type ~= 'void' then
output:write('\n ret = '..string.upper(real_type(fn.return_type))..'_OBJ(rv);')
end
- -- Now generate the cleanup label for freeing memory allocated for the
- -- arguments
output:write('\n\ncleanup:');
- for j = 1, #fn.parameters do
- local param = fn.parameters[j]
- output:write('\n api_free_'..string.lower(real_type(param[1]))..'(arg_'..j..');')
- end
output:write('\n return ret;\n}\n\n');
end
end