diff options
author | Robbie Harwood <rharwood@redhat.com> | 2021-07-28 14:23:32 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2021-08-02 11:14:20 -0400 |
commit | 60698263122b7c54ded3f70a466176e17a529480 (patch) | |
tree | 8fa13c7d0b7bff86390915beb2ed4ab66fd1f89f /nptl/tst-thread_local1.cc | |
parent | db737c79c694d0cb65dbc40696c8765b4299310c (diff) | |
download | glibc-60698263122b7c54ded3f70a466176e17a529480.tar.gz glibc-60698263122b7c54ded3f70a466176e17a529480.tar.xz glibc-60698263122b7c54ded3f70a466176e17a529480.zip |
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: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/tst-thread_local1.cc')
0 files changed, 0 insertions, 0 deletions