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