Changeset ebe0c7f


Ignore:
Timestamp:
06/01/06 13:48:54 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
e49ec63
Parents:
bd6869b
Message:

Dont segfault when closing a file that was never successfully opened

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r4f53786 rebe0c7f  
    498498
    499499static int erf_fin_input(libtrace_t *libtrace) {
    500         libtrace_io_close(INPUT.file);
     500        if (INPUT.file)
     501                libtrace_io_close(INPUT.file);
    501502        free(libtrace->format_data);
    502503        return 0;
Note: See TracChangeset for help on using the changeset viewer.