threads / patch / 28628

patch, 3 partsjp/get-ref-dir-unsorted fixups

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

## tl;dr

One message between Oct 8, 2011 and Oct 8, 2011. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Brandon Casey· Oct 8, 2011, 03:20 UTC · lore
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

← back to recent threads