[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: a memory leak problem
- From: Olivier Delannoy <olivier.delannoy@...>
- Date: Fri, 17 Feb 2006 10:35:32 +0100
On 2/17/06, Olivier Delannoy <firstname.lastname@example.org> wrote:
> realloc does exactly the same as free in C standard.
in case of reallocation to a size of 0 ;)
> On 2/17/06, cloudwu <email@example.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:firstname.lastname@example.org
> > http://www.codingnow.com
> > [失去, 总令人舍不得, 但痛苦并不来自于失去, 而是来自于我们不肯放手]