Re: [PATCH 1/2] Introduce leaky().
- Date: Thu, 26 Jun 2008 23:33:04 +0200
- From: Pierre Habouzit <madcoder@xxxxxxxxxx>
- Subject: Re: [PATCH 1/2] Introduce leaky().
On Thu, Jun 26, 2008 at 06:46:43PM +0000, Junio C Hamano wrote: > The user would also need to worry about not freeing the original > allocation pointer when something is realloc(3)ed, which means either > finding the last realloc(3) of the object (that is logically the same, but > just being extended) and mark the pointer as leaky() after that realloc, > or unregister the original pointer from leaks before calling realloc and > register what comes back. It will easily get messy. Hmm indeed, maybe it isn't such a good idea then. > By the way, the series queued in your repository still has "s/pring/print/" > typo in 4/7 and "argv not NULL terminated" comment in 6/7. I'll fix that and pushed again, without the leaky() series dependency (I've put in a comment that I'm aware that it's a leak), and with the two fixes you mention done. -- ·O· Pierre Habouzit ··O madcoder@xxxxxxxxxx OOO http://www.madism.org
Attachment:
pgpZFAVBGvPQg.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH 1/2] Introduce leaky().
- From: Jan Hudec
- Re: [PATCH 1/2] Introduce leaky().
- References:
- [RFC] leaky()
- From: Pierre Habouzit
- [PATCH 1/2] Introduce leaky().
- From: Pierre Habouzit
- Re: [PATCH 1/2] Introduce leaky().
- From: Junio C Hamano
- [RFC] leaky()
- Prev by Date: Re: pread() over NFS (again) [1.5.5.4]
- Next by Date: Re: pread() over NFS (again) [1.5.5.4]
- Previous by thread: Re: [PATCH 1/2] Introduce leaky().
- Next by thread: Re: [PATCH 1/2] Introduce leaky().
- Index(es):