summaryrefslogtreecommitdiff
path: root/src/dev/pktfifo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/pktfifo.cc')
-rw-r--r--src/dev/pktfifo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/pktfifo.cc b/src/dev/pktfifo.cc
index e5d67d5ec..efd8b083d 100644
--- a/src/dev/pktfifo.cc
+++ b/src/dev/pktfifo.cc
@@ -77,7 +77,7 @@ void
PacketFifoEntry::unserialize(const string &base, Checkpoint *cp,
const string &section)
{
- packet = new EthPacketData(16384);
+ packet = make_shared<EthPacketData>(16384);
packet->unserialize(base + ".packet", cp, section);
paramIn(cp, section, base + ".slack", slack);
paramIn(cp, section, base + ".number", number);