From eb2111e01bbe491e30bc404be7cf04a7270472da Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Tue, 3 Dec 2024 18:47:06 +0100 Subject: [PATCH] FieldsChunkSerializer: Removed unused and memory leaking code fragment. --- src/inet/common/packet/serializer/FieldsChunkSerializer.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/inet/common/packet/serializer/FieldsChunkSerializer.cc b/src/inet/common/packet/serializer/FieldsChunkSerializer.cc index ad790e9eadc..0796f444480 100644 --- a/src/inet/common/packet/serializer/FieldsChunkSerializer.cc +++ b/src/inet/common/packet/serializer/FieldsChunkSerializer.cc @@ -38,8 +38,6 @@ const Ptr FieldsChunkSerializer::deserialize(MemoryInputStream& stream, c auto chunkLength = endPosition - startPosition; ChunkSerializer::totalDeserializedLength += chunkLength; fieldsChunk->setChunkLength(chunkLength); - auto serializedBytes = new std::vector(); - stream.copyData(*serializedBytes, startPosition, chunkLength); auto& chunkStream = fieldsChunk->getSerializedDataForUpdate(); chunkStream.clear(); chunkStream.writeData(stream.getData(), startPosition, chunkLength);