diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-10-31 15:01:29 +0000 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-10-31 15:14:44 +0000 |
commit | c570e74384a63b88d38d7697be435dd8de130ac8 (patch) | |
tree | 0abeb2fcd3d058155a37f31e1b9b23a89c1ab78d /libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc | |
parent | fc6dfe9f7ee02834ae1e6f56e0aaee36ac3e88dd (diff) |
[HICN-371] Solve memory leaks in libtransport.
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I654843c3361c7bdb4b160f2441f08e8d91e97384
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc')
-rw-r--r-- | libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc index 33a37f540..7047a3a67 100644 --- a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc +++ b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc @@ -63,7 +63,7 @@ void fillCommandHeader(CommandHeader *header) { RouteToSelfCommand createCommandRoute(std::unique_ptr<sockaddr> &&addr, uint8_t prefix_length) { - RouteToSelfCommand command; + RouteToSelfCommand command = {0}; // check and set IP address if (addr->sa_family == AF_INET) { |