diff options
author | pfg <pfg@FreeBSD.org> | 2016-01-04 03:20:41 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-01-04 03:20:41 +0000 |
commit | d9222b5f8fb29be6dea4f5d3a49acd3c3818668d (patch) | |
tree | ed2024fa036203f89b59b039aaf6da516080c45f /usr.sbin/cron/crontab/crontab.c | |
parent | e239096251e02e9b318a77632b5df90807e2ed61 (diff) | |
download | FreeBSD-src-d9222b5f8fb29be6dea4f5d3a49acd3c3818668d.zip FreeBSD-src-d9222b5f8fb29be6dea4f5d3a49acd3c3818668d.tar.gz |
MFC r292605, r292606, r292607, r292608:
cron: bring some fixes for Coverity reports and other issues.
crontab: replace malloc + bzero with calloc
crontab: properly free an entry
cron: Check the return value of pipe(2)
CID: 271773, 1009830,
Diffstat (limited to 'usr.sbin/cron/crontab/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab/crontab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c index 1ac81b0..f2e97a7 100644 --- a/usr.sbin/cron/crontab/crontab.c +++ b/usr.sbin/cron/crontab/crontab.c @@ -558,7 +558,7 @@ replace_cmd() { case FALSE: e = load_entry(tmp, check_error, pw, envp); if (e) - free(e); + free_entry(e); break; case TRUE: break; |