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