Ignore:
Timestamp:
09/23/10 16:50:16 (11 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:
15749d5
Parents:
4c92c49
Message:
  • Fixed segfault if you specified an invalid output format
  • Also make sure we free the duplicated string in the event of failure
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/tracertstats.c

    rec0f8f1 r5d081ff  
    130130        if (!merge_inputs)
    131131                create_output(uri);
     132
     133        if (output == NULL)
     134                return;
    132135
    133136        trace = trace_create(uri);
     
    283286                 * provided URI - admittedly not ideal */
    284287                create_output(argv[optind]);
     288                if (output == NULL)
     289                        return 0;
    285290
    286291        }
Note: See TracChangeset for help on using the changeset viewer.