Skip to content
Commit 60698263 authored by Robbie Harwood's avatar Robbie Harwood Committed by Carlos O'Donell
Browse files

nis: Fix leak on realloc failure in nis_getnames [BZ #28150]



If pos >= count but realloc fails, tmp will not have been placed in
getnames[pos] yet, and so will not be freed in free_null.  Detected
by Coverity.

Also remove misleading comment from nis_getnames(), since it actually
did properly release getnames when out of memory.

Tested-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent db737c79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment