- Timestamp:
- 08/25/15 13:38:54 (6 years ago)
- 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:
- 54cf135
- Parents:
- 4007dbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace_parallel.c
r4007dbb reea427f 377 377 DLLEXPORT void libtrace_make_packet_safe(libtrace_packet_t *pkt) { 378 378 // Duplicate the packet in standard malloc'd memory and free the 379 // original, This is a 1:1 exchange so isocache count remains unchanged.379 // original, This is a 1:1 exchange so the ocache count remains unchanged. 380 380 if (pkt->buf_control != TRACE_CTRL_PACKET) { 381 381 libtrace_packet_t *dup; … … 385 385 /* Copy the duplicated packet over the existing */ 386 386 memcpy(pkt, dup, sizeof(libtrace_packet_t)); 387 /* Free the packet structure */ 388 free(dup); 387 389 } 388 390 }
Note: See TracChangeset
for help on using the changeset viewer.