Ignore:
Timestamp:
05/04/06 17:05:13 (7 years ago)
Author:
spa1
Message:

Fixed memory leak in trace_event_trace
Wrote an example using the event framework
Removed old event examples
Updated format_pcapfile to use libtrace_direction_t
erf_read_packet now checks that malloc()ing a buffer actually succeeds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_helper.c

    r742 r784  
    140140        /* TODO: finalise packet */ 
    141141        *packet = *trace->event.packet; 
    142         trace->event.packet = NULL; 
     142        trace_destroy_packet(&trace->event.packet); 
    143143 
    144144        event.type = TRACE_EVENT_PACKET; 
Note: See TracChangeset for help on using the changeset viewer.