Coverity issues in contrail-controller/pkt0_interface_base.cc
Bug #1770422 reported by
Anda-Maria Nicolae
This bug affects 1 person
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 issue in contrail-
- double_free: Calling ~Pkt0Interface frees pointer this->read_buff_ which has already been freed in pkt0_interface_
Indeed, Pkt0RawInterface inherits Pkt0Interface. read_buff_ pointer is freed in both the destructor of Pkt0Interface and in the destructor of Pkt0RawInterface.
Solution is to free read_buff_ only the desturcotr of the base class: Pkt0Interface.
tags: | added: vrouter |
To post a comment you must log in.
Review in progress for https:/ /review. opencontrail. org/42940
Submitter: Anda Nicolae (<email address hidden>)