From: Duy Nguyen Date: Tue, 24 Mar 2015 13:42:17 GMT Subject: Re: [PATCH 10/15] commit.c: fix a memory leak Message-ID: In-Reply-To: On Sat, Mar 21, 2015 at 10:59 AM, Junio C Hamano wrote: > 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