[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Userdata memory is not freed
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 19 Apr 2007 11:17:24 -0300
> require "testlib"
> print("1:", collectgarbage"count") --> 22 KB
> testlib.new(2^20)
> print("2:", collectgarbage"count") --> 1046 KB
> collectgarbage"collect"
> print("3:", collectgarbage"count") --> 1044 KB
It works for me:
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
1: 20.8818359375
2:inside __gc
1044.9306640625
3: 17.99609375
--lhf