tap: fix memory errors in create/delete 91/20391/2
authorBenoît Ganne <bganne@cisco.com>
Thu, 27 Jun 2019 15:31:28 +0000 (17:31 +0200)
committerNeale Ranns <nranns@cisco.com>
Fri, 28 Jun 2019 11:58:12 +0000 (11:58 +0000)
commit8d879e1a6bac47240a232893e914815f781fd4bf
tree3bcbeabe6a3438b03ec631de75efdbdaf8c257b3
parent4752b29cfe229806c1cb2ae852c188d36be4c7cf
tap: fix memory errors in create/delete

If the host interface name is not specified at creation, host_if_name
was wrongly set to a stack-allocated variable. Make sure it always
points to a heap allocated vector.
At deletion time, we must free all allocated vectors.

Type:fix

Change-Id: I17751f38e95097998d51225fdccbf3ce3c365593
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/devices/tap/tap.c