Changeset 8452 for trunk/module-stat.c


Ignore:
Timestamp:
03/02/13 12:55:35 (9 years ago)
Author:
gf
Message:

Do not forget to close open file on error.

Patch by DaytonaHack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-stat.c

    r8411 r8452  
    121121    }
    122122   
    123     if (!cs_malloc(&line, LINESIZE))
     123    if (!cs_malloc(&line, LINESIZE)) {
     124        fclose(file);
    124125        return;
    125    
     126    }
     127
    126128    setvbuf(file, NULL, _IOFBF, 128*1024);
    127129
Note: See TracChangeset for help on using the changeset viewer.