@@ -759,11 +759,11 @@ varhandlers = newhandler; return(0); } -static int lc_process_file(const char *appname, const char *pathname, lc_conf_type_t type) { +int lc_process_file(const char *appname, const char *pathname, lc_conf_type_t type) { int chkretval = 0; switch (type) { case LC_CONF_SECTION: chkretval = lc_process_conf_section(appname, pathname); @@ -852,11 +852,11 @@ } return(retval); } -static void lc_cleanup(void) { +void lc_cleanup(void) { struct lc_varhandler_st *handler = NULL, *next = NULL; handler = varhandlers; while (handler != NULL) { if (handler->var != NULL) { @@ -892,13 +892,10 @@ chkretval = lc_process_cmdline(argc, argv); if (chkretval < 0) { retval = -1; } - /* Free our structures. */ - lc_cleanup(); - return(retval); } lc_err_t lc_geterrno(void) {