Changeset f5b5cca


Ignore:
Timestamp:
06/27/13 14:10:16 (7 years ago)
Author:
Shane Alcock <salcock@…>
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:
b87c9e8
Parents:
d0cae69
Message:
  • Tidy up after ourselves a little better if we fail to start either the input or output traces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/traceanon/traceanon.c

    r946f9e1 rf5b5cca  
    279279        if (trace_start(trace)==-1) {
    280280                trace_perror(trace,"trace_start");
     281                trace_destroy_output(writer);
     282                trace_destroy(trace);
    281283                return 1;
    282284        }
    283285        if (trace_start_output(writer)==-1) {
    284286                trace_perror_output(writer,"trace_start_output");
     287                trace_destroy_output(writer);
     288                trace_destroy(trace);
    285289                return 1;
    286290        }
Note: See TracChangeset for help on using the changeset viewer.