Changeset 5431dfc


Ignore:
Timestamp:
03/27/15 17:54:55 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
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:
652d720
Parents:
ac6ac7f
Message:

Fix bug when locks are a ringbuffer and its lock were free()d despite never being allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r7c95027 r5431dfc  
    20052005                while(libtrace_ringbuffer_try_read(&libtrace->perpkt_threads[i].rbuffer, (void **) &packet))
    20062006                        trace_destroy_packet(packet);
    2007                 if (libtrace->hasher) {
     2007                if (trace_has_dedicated_hasher(libtrace)) {
    20082008                        assert(libtrace_ringbuffer_is_empty(&libtrace->perpkt_threads[i].rbuffer));
    20092009                        libtrace_ringbuffer_destroy(&libtrace->perpkt_threads[i].rbuffer);
Note: See TracChangeset for help on using the changeset viewer.