From: thib Date: Thu, 29 Apr 2004 19:34:45 +0000 (+0000) Subject: added free_conf() to free the memory corresponding to the fcron.conf file X-Git-Tag: ver2_9_5~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fe905805391ae8dc260da3a485804acbb61ec7c;p=fcron added free_conf() to free the memory corresponding to the fcron.conf file --- diff --git a/subs.c b/subs.c index 9b33304..849d066 100644 --- 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)