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

[PATCH 0/3] jp/get-ref-dir-unsorted fixups

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Oct 8, 2011, 03:20 UTC
Message-ID
<5WORKOGzj9pUA6-WazYHWoC73c8I1v5CksR-XJ592FHo27VoGczYpfodVAo5IkHADGEX_Z99bE2ZW-oMcjJ4UGTn2ajXlQjUPh1nRi12BF_tCkwU1qQ6JRoANGVSBwr8n-Q7tv0O4rA@cipher.nrlssc.navy.mil>
Here are a few fixups I found while investigating a segfault on IRIX.

The first patch fixes a potential segfault due to an uninitialized variable, but it has already been made moot by Michael Haggerty's updates to refs.c that are merged in next. So, not sure if it's worth applying or not.

The second one fixes the segfault on IRIX and is a valid thing to do anyway.

The third one plugs a little memory leak that may never occur.
Built on top of jp/get-ref-dir-unsorted e9c4c111.
-Brandon
Brandon Casey (3):
  refs.c: ensure struct whose member may be passed to realloc is
    initialized
  refs.c: abort ref search if ref array is empty
  refs.c: free duplicate entries in the ref array instead of leaking
    them
 refs.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
-- 
1.7.7
Message 1 of 1 in “jp/get-ref-dir-unsorted fixups”
  1. 0/3 jp/get-ref-dir-unsorted fixupsBrandon Casey, Oct 8, 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.