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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to