summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-12-22 15:30:26 +0000
committerpfg <pfg@FreeBSD.org>2015-12-22 15:30:26 +0000
commitf801f23bcf3e99dd42b6e4e1c124dae21500121f (patch)
treeacd3c172838ca96e374c9f17ddf1d6a52b62e3a3 /usr.sbin
parent43a39d413b3d6364a0b4e6b8a46ebb84ce81f14e (diff)
downloadFreeBSD-src-f801f23bcf3e99dd42b6e4e1c124dae21500121f.zip
FreeBSD-src-f801f23bcf3e99dd42b6e4e1c124dae21500121f.tar.gz
crontab: properly free an entry
This should close memory leak. Obtained from: OpenBSD (rev. 1.62) CID: 271773
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/cron/crontab/crontab.c2
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;
OpenPOWER on IntegriCloud