diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-04-08 19:35:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-04-08 19:35:24 +0000 |
commit | db67c2c98b89a5723af44df54f38b779de8d4a65 (patch) | |
tree | 8f0c926942134212e714d221e284f12cc59c1275 /io | |
parent | 8b7600e8cf56d5409c5733ffee77838ca7aa4428 (diff) | |
download | glibc-db67c2c98b89a5723af44df54f38b779de8d4a65.tar glibc-db67c2c98b89a5723af44df54f38b779de8d4a65.tar.gz glibc-db67c2c98b89a5723af44df54f38b779de8d4a65.tar.bz2 glibc-db67c2c98b89a5723af44df54f38b779de8d4a65.zip |
* io/fts.c (fts_build): Call fts_lfree in the two error cases
after the loop [Coverity CID 187].
* nis/nis_getservlist.c (nis_getservlist): Also free lookup result
in error case [Coverity CID 189].
* nis/nis_getservlist.c (nis_getservlist): One more free call
needed [Coverity CID 190].
Diffstat (limited to 'io')
-rw-r--r-- | io/fts.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -828,6 +828,7 @@ mem1: saved_errno = errno; fts_safe_changedir(sp, cur->fts_parent, -1, ".."))) { cur->fts_info = FTS_ERR; SET(FTS_STOP); + fts_lfree(head); return (NULL); } @@ -835,6 +836,7 @@ mem1: saved_errno = errno; if (!nitems) { if (type == BREAD) cur->fts_info = FTS_DP; + fts_lfree(head); return (NULL); } |