Re: [PATCH 10/15] commit.c: fix a memory leak
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 24, 2015, 13:42 UTC
- Message-ID
- <CACsJy8A3CptGYNAZ=+k0ykBCp6SGoOLY0nX20WkWQp=qUnxwWg@mail.gmail.com>
- In-Reply-To
- <xmqqk2ybatm1.fsf@gitster.dls.corp.google.com>
On Sat, Mar 21, 2015 at 10:59 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> A further tangent (Duy Cc'ed for this point). We might want to > rethink the interface to ce_path_match() and report_path_error() > so that we do not have to do a separate allocation of "has this > pathspec been used?" array. This was a remnant from the olden days > back when pathspec were mere "const char **" where we did not have > any room to add per-item bit---these days pathspec is repreasented > as an array of "struct pathspec" and we can afford to add a bit > to the structure---which will make this kind of leak much less > likely to happen.
I just want to say "noted" (and therefore in my backlog). But no promise that it will happen any time soon. Low hanging fruit, perhaps some people may be interested..
-- Duy