[X2serv-cvs] CVS: x2/source accounting.c,1.8,1.9
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2001-03-16 01:50:54
|
Update of /cvsroot/x2serv/x2/source In directory usw-pr-cvs1:/tmp/cvs-serv14060 Modified Files: accounting.c Log Message: Fixed a file handle leak in accounting.c Index: accounting.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/accounting.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** accounting.c 2001/02/13 13:22:47 1.8 --- accounting.c 2001/03/16 01:52:58 1.9 *************** *** 92,95 **** --- 92,96 ---- { send_to_user(uptr, "%s:%s", AccountingLog, strerror(errno)); + fclose(TheFile); return(0); } *************** *** 99,102 **** --- 100,104 ---- { send_to_user(uptr, "%s:%s", AccountingLog, strerror(errno)); + fclose(TheFile); return(0); } *************** *** 130,133 **** --- 132,136 ---- { send_to_user(uptr, "=--- Data age limit reached ---="); + fclose(TheFile); return(TRUE); } *************** *** 138,141 **** --- 141,145 ---- } send_to_user(uptr, "=--- End of log data ---="); + fclose(TheFile); return(TRUE); } |