I suspect there's a memory leak in the MIKEYPayload class. The fData member
is initialized with dynamic allocation in the constructor:
MIKEYPayload::MIKEYPayload(MIKEYState& ourMIKEYState, u_int8_t payloadType,
u_int8_t const* data, unsigned dataSize)
: fOurMIKEYState(ourMIKEYState), fPayloadType(payloadType),
fDataSize(dataSize), fNext(NULL) {
* fData = new u_int8_t[fDataSize];* memcpy(fData, data, fDataSize);
}
However, the destructor does not free it:
MIKEYPayload::~MIKEYPayload() {
delete fNext;
}
This leak was detected by valgrind memleak.
--
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel