Skip to content

Commit

Permalink
FieldsChunkSerializer: Removed unused and memory leaking code fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed Dec 3, 2024
1 parent 76ea5cf commit eb2111e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/inet/common/packet/serializer/FieldsChunkSerializer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ const Ptr<Chunk> FieldsChunkSerializer::deserialize(MemoryInputStream& stream, c
auto chunkLength = endPosition - startPosition;
ChunkSerializer::totalDeserializedLength += chunkLength;
fieldsChunk->setChunkLength(chunkLength);
auto serializedBytes = new std::vector<uint8_t>();
stream.copyData(*serializedBytes, startPosition, chunkLength);
auto& chunkStream = fieldsChunk->getSerializedDataForUpdate();
chunkStream.clear();
chunkStream.writeData(stream.getData(), startPosition, chunkLength);
Expand Down

0 comments on commit eb2111e

Please sign in to comment.