[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
themrefs.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
-- 1.7.7