mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Fix memory leaks in Tutorial3
- Fix small memory leaks in Processor and Sink of Tutorial 3. - Use FairFileSource for FairMQSampler of Tutorial 3.
This commit is contained in:
parent
e4fed2fa1b
commit
c10a6abeef
|
@ -62,7 +62,7 @@ class TransferTimeoutTester : public FairMQDevice
|
|||
|
||||
if (getSndOK && getRcvOK)
|
||||
{
|
||||
void* buffer = operator new[](1000);
|
||||
void* buffer = malloc(1000);
|
||||
std::unique_ptr<FairMQMessage> msg1(fTransportFactory->CreateMessage(buffer, 1000));
|
||||
std::unique_ptr<FairMQMessage> msg2(fTransportFactory->CreateMessage());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user