aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/tap_interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/tap_interface.cpp')
-rw-r--r--src/vpp-api/vom/tap_interface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/vom/tap_interface.cpp b/src/vpp-api/vom/tap_interface.cpp
index 8314b40420e..4f88d3b8fad 100644
--- a/src/vpp-api/vom/tap_interface.cpp
+++ b/src/vpp-api/vom/tap_interface.cpp
@@ -101,8 +101,8 @@ tap_interface::event_handler::handle_populate(const client_db::key_t& key)
/*
* dump VPP current states
*/
- std::shared_ptr<tap_interface_cmds::dump_cmd> cmd(
- new tap_interface_cmds::dump_cmd());
+ std::shared_ptr<tap_interface_cmds::dump_cmd> cmd =
+ std::make_shared<tap_interface_cmds::dump_cmd>();
HW::enqueue(cmd);
HW::write();