[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a memory leak problem
- From: Olivier Delannoy <olivier.delannoy@...>
- Date: Fri, 17 Feb 2006 10:34:15 +0100
realloc does exactly the same as free in C standard.
On 2/17/06, cloudwu <cloudwu@163.com> wrote:
>
> 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
>
> [失去, 总令人舍不得, 但痛苦并不来自于失去, 而是来自于我们不肯放手]
>
>
>