Re: [PATCH 1/2] Introduce leaky().
- Date: Wed, 25 Jun 2008 00:10:48 +0200
- From: Pierre Habouzit <madcoder@xxxxxxxxxx>
- Subject: Re: [PATCH 1/2] Introduce leaky().
On Tue, Jun 24, 2008 at 09:28:30PM +0000, Jakub Narebski wrote: > Pierre Habouzit <madcoder@xxxxxxxxxx> writes: > > > diff --git a/Makefile b/Makefile > > > +# > > +# Define COLLECT_LEAKS_AT_EXIT if you want memory marked as leaky() at exit. > > I think s/at exit/to be freed &/; err obviously. > > diff --git a/cache.h b/cache.h > > Hmmm... cache? well cache.h has the prototypes for alloc.c that feels like the proper place, but I don't care much :) > > /* alloc.c */ > > +#ifdef COLLECT_LEAKS_AT_EXIT > > +extern void *leaky(void *); > > +#else > > +# define leaky(x) x > > +#endif > > Not > > +# define leaky(x) (x) > > to be careful? ack. -- ·O· Pierre Habouzit ··O madcoder@xxxxxxxxxx OOO http://www.madism.org
Attachment:
pgpABqWRt1sJC.pgp
Description: PGP signature
- References:
- [RFC] leaky()
- From: Pierre Habouzit
- [PATCH 1/2] Introduce leaky().
- From: Pierre Habouzit
- Re: [PATCH 1/2] Introduce leaky().
- From: Jakub Narebski
- [RFC] leaky()
- Prev by Date: Re: Segmentation fault on http clone, post-1.5.6
- Next by Date: Re: What's cooking in git.git (topics)
- Previous by thread: Re: [PATCH 1/2] Introduce leaky().
- Next by thread: Re: [PATCH 1/2] Introduce leaky().
- Index(es):