--- projects/cms/source/idar/idar.c 2003/08/21 21:10:34 1.20 +++ projects/cms/source/idar/idar.c 2004/06/02 16:11:48 1.23 @@ -1,6 +1,6 @@ /* * i-scream central monitoring system - * http://www.i-scream.org.uk + * http://www.i-scream.org * Copyright (C) 2000-2002 i-scream * * This program is free software; you can redistribute it and/or @@ -414,6 +414,8 @@ int parse_xml(char *xml, machine_data_list_t **md){ machine_data_list->diskio_data_list=NULL; *md=machine_data_list; num_hosts++; + } else { + xmlFree(hostname); } /* Now we want to pull out the data */ @@ -1005,7 +1007,7 @@ int main(int argc, char **argv){ extern int errno; display_config_t display_config; - char ch; + int ch; int data_fileno, stdin_fileno, biggest_fileno;