opentx/opentx — pull request #1674 by projectkk2glider (2014-09-04 17:34:08+00:00)
Title: Projectkk2glider/issue 1643 for master

I have now prepared a new branch that is ready to merge with `master`. The BinAllocator is by default disabled, you can enable it with `USE_BIN_ALLOCATOR=YES` make option.

This pull has this important changes:
* fixed memory leaks in standalone simu
* added Lua panic() handling
* improved allocator for Lua (BinAllocator)
* main stack painting and free checking

I haven't tested this much, just did some runs on radio in DEBUG=YES mode and it seems to be working. Stuff to check:
* handling of `luaState`
* placement and usage of `PROTECT_LUA/UNPROTECT_LUA`
* BinAllocator