diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-05-01 22:25:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-05-01 22:25:23 +0000 |
commit | d4b661e5757ca4059d875173ae70328fb31f1595 (patch) | |
tree | dc6d6dc6ebe6df2830ab139cb5f1fd57205e0bc5 /nis | |
parent | 96c169f22ea4d400f6ec5f540bbe16f2822e8279 (diff) | |
download | glibc-d4b661e5757ca4059d875173ae70328fb31f1595.tar.gz glibc-d4b661e5757ca4059d875173ae70328fb31f1595.tar.xz glibc-d4b661e5757ca4059d875173ae70328fb31f1595.zip |
* nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't try to
free outkey in error case when batch_read is set [Coverity CID 196].
Diffstat (limited to 'nis')
-rw-r--r-- | nis/nss_nis/nis-grp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-grp.c b/nis/nss_nis/nis-grp.c index ce642c484f..6e36cf828f 100644 --- a/nis/nss_nis/nis-grp.c +++ b/nis/nss_nis/nis-grp.c @@ -220,7 +220,8 @@ internal_nis_getgrent_r (struct group *grp, char *buffer, size_t buflen, errnop); if (__builtin_expect (parse_res == -1, 0)) { - free (outkey); + if (!batch_read) + free (outkey); *errnop = ERANGE; return NSS_STATUS_TRYAGAIN; } |