Changeset dfbdd796 for lib/trace.c


Ignore:
Timestamp:
01/24/11 16:25:02 (10 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:
3c83e7f
Parents:
09dd4f1
Message:
  • Make sure we only free 'scan' in trace_create if it is pointing to something valid
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r5bd27a3 rdfbdd796  
    301301        }
    302302       
    303 
    304         free(scan);
     303        if (scan)
     304                free(scan);
    305305        libtrace->err.err_num=TRACE_ERR_NOERROR;
    306306        libtrace->err.problem[0]='\0';
Note: See TracChangeset for help on using the changeset viewer.