Changeset 252 for trunk/src/sh_log_check.c
- Timestamp:
- Oct 12, 2009, 10:40:45 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_check.c
r237 r252 108 108 if (1 != fwrite(&save_rec, sizeof(struct logfile_record), 1, fd)) 109 109 { 110 (void) fclose(fd);110 (void) sl_fclose(FIL__, __LINE__, fd); 111 111 (void) remove(path); 112 112 } 113 113 else 114 114 { 115 (void) fclose(fd);115 (void) sl_fclose(FIL__, __LINE__, fd); 116 116 } 117 117 } … … 144 144 } 145 145 } 146 (void) fclose(fd);146 (void) sl_fclose(FIL__, __LINE__, fd); 147 147 } 148 148 SH_FREE(path); … … 329 329 330 330 if (thisfile->fp) 331 fclose(thisfile->fp);331 sl_fclose(FIL__, __LINE__, thisfile->fp); 332 332 if (thisfile->filename) 333 333 SH_FREE(thisfile->filename); … … 614 614 { 615 615 fgetpos(logfile->fp, &(logfile->offset)); 616 fclose(logfile->fp);616 sl_fclose(FIL__, __LINE__, logfile->fp); 617 617 logfile->fp = NULL; 618 618 sh_string_destroy(&s); … … 690 690 { 691 691 fgetpos(logfile->fp, &(logfile->offset)); 692 fclose(logfile->fp);692 sl_fclose(FIL__, __LINE__, logfile->fp); 693 693 logfile->fp = NULL; 694 694 sh_string_destroy(&s); … … 744 744 } 745 745 fgetpos(logfile->fp, &(logfile->offset)); 746 fclose(logfile->fp);746 sl_fclose(FIL__, __LINE__, logfile->fp); 747 747 logfile->fp = NULL; 748 748 memset(s, '\0', size); … … 1168 1168 } 1169 1169 1170 fclose(fp); remove(template);1170 sl_fclose(FIL__, __LINE__, fp); remove(template); 1171 1171 1172 1172
Note:
See TracChangeset
for help on using the changeset viewer.