summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-08 19:35:24 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-08 19:35:24 +0000
commitdb67c2c98b89a5723af44df54f38b779de8d4a65 (patch)
tree8f0c926942134212e714d221e284f12cc59c1275 /io
parent8b7600e8cf56d5409c5733ffee77838ca7aa4428 (diff)
* 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io/fts.c b/io/fts.c
index 71400d1716..6383fe8f17 100644
--- a/io/fts.c
+++ b/io/fts.c
@@ -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);
}