Coverity issues in contrail-controller/agent
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Medium
|
Anda-Maria Nicolae | |||
Trunk |
Fix Committed
|
Medium
|
Anda-Maria Nicolae | |||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I have run Coverity on branch R5.0 and it reported the following issues in contrail-
- leaked_storage: Variable key going out of scope leaks the storage it points to in vm_interface_
Must free key and data if data->device_type_ is VmInterface:
- leaked_storage: Variable pkt_handler going out of scope leaks the storage it points to in segment_
Must free pkt_handler if service_mode is VmInterface:
- bad_memset: Function memset with fill value '0' (the zero character) in bgp_as_
Correct is 0 instead of '0'.
- leaked_storage: Variable data going out of scope leaks the storage it points to in
Actually, data is freed, but it needs to be freed by calling delete [] data instead of free(data), because it was previously allocated by calling new[].
tags: | added: contrail-control vrouter |
- leaked_storage: Variable data going out of scope leaks the storage it points to in nexthop_ client. cc:WriteMessage