webmcp

view framework/env/trace/_new_entry.lua @ 408:fd5880964d99

Hack to avoid cumulating memory leaks in case of (caught) out-of-memory errors
author jbe
date Thu Jan 07 01:23:08 2016 +0100 (2016-01-07)
parents 04b648660f9a
children
line source
1 function trace._new_entry(node)
2 local node = node or {}
3 local stack = trace._stack
4 local parent = stack[#stack]
5 parent[#parent+1] = node
6 return node
7 end

Impressum / About Us