From: Frank Li Date: Fri, 26 Feb 2010 10:01:10 GMT Subject: Re: [PATCH v2 2/3] git-core: Support retrieving passwords with GIT_ASKPASS Message-ID: <1976ea661002260201s75ef6185x3f89742d58f12222@mail.gmail.com> In-Reply-To: <4B87797D.7030905@viscovery.net> > > You handle the return value in different ways. getpass() returns a pointer > to a static buffer, but in the 'then' branch you return an allocated > buffer. Not that it matters a lot, though. You could add a comment that > you are aware that the memory is leaked. > How about my branch also use static buffer, so there are not memory leak. best regards Frank Li