lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 16/03/2012 9.48, Axel Kittenberger wrote:
Whats the best way to determine as first step, if its a classical C
leak in the 35% of forgetting some free(), or if its a reference I
forgot to remove/set weak in a table in Lua, so its GC cannot collect?

You could use a custom allocator for Lua and two separate heaps, or just redirect (de-)allocations to the C heap and keep track of them.

--
  Enrico