svn commit: r292606 - head/usr.sbin/cron/crontab
Pedro F. Giffuni
pfg at FreeBSD.org
Tue Dec 22 15:30:27 UTC 2015
Author: pfg
Date: Tue Dec 22 15:30:26 2015
New Revision: 292606
URL: https://svnweb.freebsd.org/changeset/base/292606
Log:
crontab: properly free an entry
This should close memory leak.
Obtained from: OpenBSD (rev. 1.62)
CID: 271773
Modified:
head/usr.sbin/cron/crontab/crontab.c
Modified: head/usr.sbin/cron/crontab/crontab.c
==============================================================================
--- head/usr.sbin/cron/crontab/crontab.c Tue Dec 22 15:20:08 2015 (r292605)
+++ head/usr.sbin/cron/crontab/crontab.c Tue Dec 22 15:30:26 2015 (r292606)
@@ -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;
More information about the svn-src-head
mailing list