summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2010-11-19 10:15:29 +0000
committerKevin Lo <kevlo@FreeBSD.org>2010-11-19 10:15:29 +0000
commitf9af8a7b9cf8e217ca0f710a93b7ba5a4f341e82 (patch)
tree0eb8df563f01d87c496db0d087974af2f6b685c2
parent8385b42c7bd2f58a42022a104a535e8c6fa2c898 (diff)
downloadsrc-test2-f9af8a7b9cf8e217ca0f710a93b7ba5a4f341e82.tar.gz
src-test2-f9af8a7b9cf8e217ca0f710a93b7ba5a4f341e82.zip
Notes
-rw-r--r--usr.bin/at/at.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index fbba7bd59027..c036013febbc 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -524,6 +524,7 @@ list_jobs(long *joblist, int len)
jobno);
}
PRIV_END
+ closedir(spool);
}
static void
@@ -594,6 +595,7 @@ process_jobs(int argc, char **argv, int what)
while((ch = getc(fp)) != EOF) {
putchar(ch);
}
+ fclose(fp);
}
break;
@@ -604,6 +606,7 @@ process_jobs(int argc, char **argv, int what)
}
}
}
+ closedir(spool);
} /* delete_jobs */
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;