Changeset ff12906 for lib/trace.c


Ignore:
Timestamp:
09/23/15 13:46:38 (6 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
389dd77
Parents:
80e834f
Message:

Fix segfaults when destroying a non-parallel trace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r76c86fb rff12906  
    270270        libtrace->global_blob = NULL;
    271271        libtrace->hasher = NULL;
     272        libtrace->hasher_data = NULL;
    272273        libtrace_zero_ocache(&libtrace->packet_freelist);
    273274        libtrace_zero_thread(&libtrace->hasher_thread);
     
    900901                         * may have allocated it and zeroing all data associated with it.
    901902                         */
    902                         trace_fin_packet(packet);
     903                        if (packet->trace == libtrace)
     904                                trace_fin_packet(packet);
    903905                        /* Store the trace we are reading from into the packet opaque
    904906                         * structure */
Note: See TracChangeset for help on using the changeset viewer.