Changeset 01839ed


Ignore:
Timestamp:
04/12/07 13:05:10 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
b916afc
Parents:
c72ce62
Message:

Don't leak one packet per trace in trace_event_trace()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_helper.c

    r8d347c2 r01839ed  
    112112                        }
    113113                        event.type = TRACE_EVENT_TERMINATE;
     114                        trace_destroy_packet(trace.trace->event.packet);
     115                        trace->event.packet = NULL;
    114116                        return event;
    115117                }
     
    169171        packet->buf_control = trace->event.packet->buf_control;
    170172
     173        trace->event.packet->buffer = NULL;
    171174        trace->event.packet->buf_control = TRACE_CTRL_EXTERNAL;
    172175       
Note: See TracChangeset for help on using the changeset viewer.