Heap Leak on if
Posted: Sun Nov 30, 2014 4:16 pm
Maybe I just don't know how to use Lua yet, but this was causing issues and I narrowed it down to a test case:
If I am doing something wrong, or if this has been fixed in the past week, please let me know.
Code: Select all
NodeMcu 0.9.2 build 20141124 powered by Lua 5.1.4
> tmr.stop()
>
> if (cat == nil) then
>> cat = 5
>> end
> print(node.heap())
20360
>
> if (cat == nil) then
>> cat = 5
>> end
> print(node.heap())
19784
>
> if (cat == nil) then
>> cat = 5
>> end
> print(node.heap())
19056
>
> if (cat == nil) then
>> cat = 5
>> end
> print(node.heap())
18480
>
If I am doing something wrong, or if this has been fixed in the past week, please let me know.