aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/interface_span.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/interface_span.cpp')
-rw-r--r--src/vpp-api/vom/interface_span.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/vom/interface_span.cpp b/src/vpp-api/vom/interface_span.cpp
index 5bdbda95a12..9243f2dd755 100644
--- a/src/vpp-api/vom/interface_span.cpp
+++ b/src/vpp-api/vom/interface_span.cpp
@@ -132,8 +132,8 @@ interface_span::event_handler::handle_replay()
void
interface_span::event_handler::handle_populate(const client_db::key_t& key)
{
- std::shared_ptr<interface_span_cmds::dump_cmd> cmd(
- new interface_span_cmds::dump_cmd());
+ std::shared_ptr<interface_span_cmds::dump_cmd> cmd =
+ std::make_shared<interface_span_cmds::dump_cmd>();
HW::enqueue(cmd);
HW::write();