665,667c665,669
< Request* req = new Request(node_ptr->physAddr, node_ptr->size,
< node_ptr->flags, masterID, node_ptr->seqNum,
< ContextID(0));
---
> auto req = std::make_shared<Request>(
> node_ptr->physAddr, node_ptr->size,
> node_ptr->flags, masterID, node_ptr->seqNum,
> ContextID(0));
>
1161c1163
< Request* req = new Request(addr, size, flags, masterID);
---
> auto req = std::make_shared<Request>(addr, size, flags, masterID);
1227,1228c1229
< // the request and packet to free allocated memory
< delete pkt->req;
---
> // the packet to free allocated memory
1253c1254
< // After processing the response delete the request and packet to free
---
> // After processing the response delete the packet to free
1255d1255
< delete pkt->req;