commit | d999ffc12211f5d5c6cd2196dd525e69e2fc0f58 | [log] [tgz] |
---|---|---|
author | Vernon Mauery <vernon.mauery@linux.intel.com> | Thu Oct 25 09:16:05 2018 -0700 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Wed Nov 21 18:50:53 2018 +0000 |
tree | f79df7e8c5a2169048e8ed568fefae4912938f0c | |
parent | 127748a82ce1459a35d9886dc250697e78c24dd2 [diff] |
netipmid: use shared_ptr on messages instead of unique_ptr+references Messages were being created and held by unique_ptr objects and then shared via reference. This is dangerous and sidesteps the whole point of a unique_ptr, which is to enforce single ownership. This replaces the usage with a shared_ptr, which denotes shared ownership. Change-Id: I19ed2693f5a0f5ce47d720ed255fa05bdf3844f8 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>