[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: a memory leak problem
- From: cloudwu <cloudwu@...>
- Date: Fri, 17 Feb 2006 16:39:11 +0800
Hello Lua,
      When I use my own allocator with lua 5.1, I found a memory leak.
      lua call the allocator with all the arguments 0 .
      My allocator, my_realloc(0,0), will return a unique pointer.
      maybe lua need it return NULL, because I found lua never free
      this unique pointer anymore.
      Is it my allocator's bug?
-- 
Best regards,
 cloudwu                          mailto:cloudwu@163.com
            http://www.codingnow.com
[失去, 总令人舍不得, 但痛苦并不来自于失去, 而是来自于我们不肯放手]