Ignore:
Timestamp:
06/24/14 17:54:32 (7 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:
aa5a642
Parents:
10e183f
Message:

Fix some memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r5ba34eb r9857d1c  
    332332        message.additional.uint64 = 0;
    333333        (*trace->per_pkt)(trace, NULL, &message, t);
     334
     335        // Free our last packet
     336        if (packet)
     337                trace_destroy_packet(packet);
    334338
    335339        // And we're at the end free the memories
     
    11821186        }
    11831187        libtrace_ringbuffer_init(&libtrace->packet_freelist, libtrace->packet_freelist_size, LIBTRACE_RINGBUFFER_BLOCKING);
    1184         libtrace_slidingwindow_init(&libtrace->sliding_window, libtrace->packet_freelist_size, 0);
     1188        //libtrace_slidingwindow_init(&libtrace->sliding_window, libtrace->packet_freelist_size, 0);
    11851189        assert(sem_init(&libtrace->sem, 0, libtrace->packet_freelist_size) == 0);
    11861190        // This will be applied to every new thread that starts, i.e. they will block all signals
Note: See TracChangeset for help on using the changeset viewer.