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

Re: [PATCH 1/2] cmd_clone: free dir and path buffers

From
Carlos Martín Nieto <cmn@elego.de>
Date
Mar 31, 2011, 15:06 UTC
Message-ID
<1301583996.11592.3.camel@bee.lab.cmartin.tk>
In-Reply-To
<AANLkTi=XYv1WFbvHwqvrJDkssKC-zU91Vj4EPbZG6OK2@mail.gmail.com>
On jue, 2011-03-31 at 10:45 -0400, John Szakmeister wrote:
Show 5 quoted lines
> On Thu, Mar 31, 2011 at 10:18 AM, Carlos Martín Nieto <cmn@elego.de> wrote:
> > The variables dir and path are always allocated on the stack so it's
> > always safe to free them.
> 
> I think you mean "on the heap". :-)
 Indeed I do 
   cmn
Previous: John SzakmeisterNext: Carlos Martín Nieto
Message 4 of 6 in “cmd_clone: free dir and path buffers”
  1. 1/2 cmd_clone: free dir and path buffersCarlos Martín Nieto, Mar 31, 2011
  2. 2/2 cmd_clone: make sure repo is allocated on the stack and free itCarlos Martín Nieto, Mar 31, 2011
  3. John SzakmeisterMar 31, 2011
  4. Carlos Martín NietoMar 31, 2011
  5. 1/2 cmd_clone: free dir and path buffersCarlos Martín Nieto, Mar 31, 2011
  6. 2/2 cmd_clone: make sure repo is allocated on the heap and free itCarlos Martín Nieto, Mar 31, 2011

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.