--- projects/cms/source/ihost/libstatgrab/user_stats.c 2002/05/18 18:15:56 1.3 +++ projects/cms/source/ihost/libstatgrab/user_stats.c 2002/05/19 15:07:51 1.4 @@ -71,6 +71,12 @@ char *get_user_stats(){ if(user_tmp!=NULL) free(user_tmp); nousers++; } + + if ((fclose(f)) != 0) { + errf("Failed to close file (%m)"); + return NULL; + } + #endif if (user_list==NULL) user_list=strdup(""); xml_user_data=strf("%s%d",user_list,nousers);