Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
VOM: favour make_shared
[vpp.git]
/
src
/
vpp-api
/
vom
/
interface.cpp
diff --git
a/src/vpp-api/vom/interface.cpp
b/src/vpp-api/vom/interface.cpp
index
aab2eab
..
c7b7e43
100644
(file)
--- a/
src/vpp-api/vom/interface.cpp
+++ b/
src/vpp-api/vom/interface.cpp
@@
-435,7
+435,8
@@
interface::event_handler::handle_populate(const client_db::key_t& key)
/*
* dump VPP current states
*/
- interface_cmds::dump_cmd* cmd = new interface_cmds::dump_cmd();
+ std::shared_ptr<interface_cmds::dump_cmd> cmd =
+ std::make_shared<interface_cmds::dump_cmd>();
HW::enqueue(cmd);
HW::write();