datapath: Fix memory leak in ovs_vport_alloc() error path
authorChristoph Jaeger <cj@linux.com>
Wed, 13 Aug 2014 03:25:07 +0000 (20:25 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 13 Aug 2014 03:26:33 +0000 (20:26 -0700)
commitd5797f6d07e46e125c77e16a2b8dc7ec54cd3d8c
tree8610f9fa033dcc7df1b0b1872060b60f2dcb755c
parent1304f1f8a769bdfb4273b8bfaf2812e21042a68b
datapath: Fix memory leak in ovs_vport_alloc() error path

ovs_vport_alloc() bails out without freeing the memory 'vport' points
to.

Picked up by Coverity - CID 1230503.

Fixes: beb1c69a3 ("datapath: Allow each vport to have an array of
'port_id's.")
Signed-off-by: Christoph Jaeger <cj@linux.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/vport.c