git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 2/3] git-core: Support retrieving passwords with GIT_ASKPASS

From
Frank Li <lznuaa@gmail.com>
Date
Feb 26, 2010, 10:01 UTC
Message-ID
<1976ea661002260201s75ef6185x3f89742d58f12222@mail.gmail.com>
In-Reply-To
<4B87797D.7030905@viscovery.net>
Show 6 quoted lines
>
> 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

Previous: Junio C Hamano
Message 8 of 8 in “git-core: Support retrieving passwords with GIT_ASKPASS”
  1. 2/3 git-core: Support retrieving passwords with GIT_ASKPASSFrank Li, Feb 26, 2010
  2. Miklos VajnaFeb 26, 2010
  3. Frank LiFeb 26, 2010
  4. Johannes SixtFeb 26, 2010
  5. Junio C HamanoFeb 26, 2010
  6. Johannes SixtFeb 26, 2010
  7. Junio C HamanoFeb 26, 2010
  8. Frank LiFeb 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.