From: Florian G. <re...@us...> - 2007-12-14 21:42:14
|
Update of /cvsroot/perfparse/_perfparse/perfparse In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1160/perfparse Modified Files: perfparsed.c storage.c Log Message: fixed some small memleaks and logging Index: perfparsed.c =================================================================== RCS file: /cvsroot/perfparse/_perfparse/perfparse/perfparsed.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** perfparsed.c 9 Dec 2007 20:40:40 -0000 1.8 --- perfparsed.c 14 Dec 2007 21:42:17 -0000 1.9 *************** *** 78,82 **** } ! for (i = getdtablesize (); i >= 0; --i) close (i); --- 78,82 ---- } ! for (i = getdtablesize()-1; i >= 0; --i) close (i); Index: storage.c =================================================================== RCS file: /cvsroot/perfparse/_perfparse/perfparse/storage.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** storage.c 8 Dec 2007 21:25:30 -0000 1.7 --- storage.c 14 Dec 2007 21:42:17 -0000 1.8 *************** *** 138,141 **** --- 138,142 ---- n=0; for(sm=storage_modules; sm; sm = sm->next) n++; + free(modules_list); return(n); } *************** *** 285,298 **** } /* Module periodic_cleanup procedures */ for(this=storage_modules; this; this = this->next) { - pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage modules\n")); if(this->module->enabled && this->module->periodic_cleanup) { ! pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage module %s\n")); ! this->module->periodic_cleanup(this->module);} ! else { pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage module %s not supported or module disabled\n"),this->module->id); } } ! pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup finished\n"),this->module->id); if(config_get_value_as_boolean(CONFIG_ITEM_ID_DAEMONIZE)) { exit(EXIT_SUCCESS); --- 286,300 ---- } /* Module periodic_cleanup procedures */ + pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage modules\n")); for(this=storage_modules; this; this = this->next) { if(this->module->enabled && this->module->periodic_cleanup) { ! pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage module %s\n"),this->module->id); ! this->module->periodic_cleanup(this->module); ! pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage module %s finished\n"),this->module->id); ! }else { pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage module %s not supported or module disabled\n"),this->module->id); } } ! pp_log(__FILE__,__LINE__,LOG_INFO, _("Perfparsed : periodic cleanup of storage modules finished\n")); if(config_get_value_as_boolean(CONFIG_ITEM_ID_DAEMONIZE)) { exit(EXIT_SUCCESS); |