summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2011-05-19 15:00:17 +0000
committerphessler <phessler@openbsd.org>2011-05-19 15:00:17 +0000
commit77e258e85769ac58e4f9820509b5e33f8f9ffa41 (patch)
tree702aebb3b07dd10bc80690fb85d4693386cf843d /usr.sbin/cron/crontab.c
parentSetting RC_DEBUG is enough, it does not need to be explicitely set to (diff)
downloadwireguard-openbsd-77e258e85769ac58e4f9820509b5e33f8f9ffa41.tar.xz
wireguard-openbsd-77e258e85769ac58e4f9820509b5e33f8f9ffa41.zip
Fix some possible NULL pointer dereferences, and a little bit of cleanup.
From Lawrence Teo (thanks!) OK krw@
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r--usr.sbin/cron/crontab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c
index 450e99714e5..5efef36124e 100644
--- a/usr.sbin/cron/crontab.c
+++ b/usr.sbin/cron/crontab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crontab.c,v 1.61 2011/04/04 15:17:52 millert Exp $ */
+/* $OpenBSD: crontab.c,v 1.62 2011/05/19 15:00:17 phessler Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -547,7 +547,7 @@ replace_cmd(void) {
case FALSE:
e = load_entry(tmp, check_error, pw, envp);
if (e)
- free(e);
+ free_entry(e);
break;
case TRUE:
break;