[PATCH 0/3] jp/get-ref-dir-unsorted fixups
From: Brandon Casey <hidden>
Date: 2016-06-15 22:52:12
From: Brandon Casey <hidden>
Date: 2016-06-15 22:52:12
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