Coverity issues in contrail-controller/pkt0_interface_base.cc
Coverity issues in contrail-controller/pkt0_interface_base.cc

I have run Coverity on branch R5.0 and it reported the following
issue in contrail-controller/pkt0_interface_base.cc:

- double_free: Calling ~Pkt0Interface frees pointer this->read_buff_
which has already been freed in pkt0_interface_base.cc:~Pkt0RawInterface()

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 in the destructor of the base class: Pkt0Interface.

Change-Id: Idfd6ce06a9cc561fb9da76ce0aaf985e9c51ab71
Closes-Bug: #1770422
Signed-off-by: Anda Nicolae <31a050c5ab5e18545e3d5420b0dac4e4b12c44c7@lenovo.com>

rombie/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller