Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coverity issues in contrail-controller/agent
- leaked_storage: Variable key going out of scope leaks the storage it points to in vm_interface_config.cc:VmiProcessConfig Must free key and data if data->device_type_ is VmInterface::REMOTE_VM_VLAN_ON_VMI. - leaked_storage: Variable pkt_handler going out of scope leaks the storage it points to in segment_health_check.cc:SendRequest Must free pkt_handler if service_mode is VmInterface::SERVICE_MODE_ERROR. - bad_memset: Function memset with fill value '0' (the zero character) in bgp_as_service.cc:BingBgpAsAServicePorts.cc Correct is 0 instead of '0'. - leaked_storage: Variable data going out of scope leaks the storage it points to in nexthop_client.cc:WriteMessage Actually, data is freed, but it needs to be freed by calling delete [] data instead of free(data), because it was previsouly allocated by calling new[]. Change-Id: Ibbb94df3ac0fa4ef41789137aed4dc15fa4b3e84 Closes-Bug: #1770193 Signed-off-by: Anda Nicolae <anicolae@lenovo.com>
- Loading branch information
Anda Nicolae
committed
May 9, 2018
1 parent
ca90a5d
commit 32e41cc
Showing
4 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters