Coverity issues in contrail-controller/agent_param.cc
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Undecided
|
Anda-Maria Nicolae | |||
Trunk |
Fix Committed
|
Undecided
|
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-
- buffer_
- leaked_storage: Variable f going out of scope leaks the storage it points to in agent_param.
Indeed, for the 1st issue, the length of std::string:
For the 2nd issue, we need to close the file pointer before exiting the function.
tags: | added: vrouter |
Review in progress for https:/ /review. opencontrail. org/42901
Submitter: Anda Nicolae (<email address hidden>)