]> granicus.if.org Git - fcron/commitdiff
added free_conf() to free the memory corresponding to the fcron.conf file
authorthib <thib>
Thu, 29 Apr 2004 19:34:45 +0000 (19:34 +0000)
committerthib <thib>
Thu, 29 Apr 2004 19:34:45 +0000 (19:34 +0000)
subs.c

diff --git a/subs.c b/subs.c
index 9b33304db0ec66aef008bb4f3951e8d676800285..849d066c926c4f27bc75c447fa10673b35dbe727 100644 (file)
--- a/subs.c
+++ b/subs.c
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: subs.c,v 1.20 2003-12-25 22:52:48 thib Exp $ */
+ /* $Id: subs.c,v 1.21 2004-04-29 19:34:45 thib Exp $ */
 
 #include "global.h"
 #include "subs.h"
@@ -119,6 +119,22 @@ init_conf(void)
     editor = strdup2(EDITOR);
 }
 
+void
+free_conf(void)
+/* free() the memory allocated in init_conf() */
+{
+    free(fcronconf);
+    free(fcrontabs);
+    free(pidfile);
+    free(fifofile);
+    free(fcronallow);
+    free(fcrondeny);
+    free(shell);
+    free(sendmail);
+    free(editor);
+}
+
+
 
 void
 read_conf(void)