Changeset 4df814d


Ignore:
Timestamp:
04/21/07 15:50:24 (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:
61b4543
Parents:
7be3cc4
Message:

Don't segfault on destroy if the trace wasn't created properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r4a207b8 r4df814d  
    302302
    303303static int erf_fin_output(libtrace_out_t *libtrace) {
    304         libtrace_io_close(OUTPUT.file);
     304        if (OUTPUT.file)
     305                libtrace_io_close(OUTPUT.file);
    305306        free(libtrace->format_data);
    306307        return 0;
Note: See TracChangeset for help on using the changeset viewer.