examples/ip_pipeline: fix leak on tap creation failure
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 18 Apr 2018 16:58:09 +0000 (17:58 +0100)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 8 May 2018 11:09:20 +0000 (13:09 +0200)
commit0015ea276725a5e2a8f634b76c67a524c0c0a3ca
treeb6f48b68d97bde3efc6685d3db3a46cf0b9f4ec9
parent89668b1c75dc0a3afeb172d4a16481bad1ba3084
examples/ip_pipeline: fix leak on tap creation failure

Close tap device fd before returning upon failures.

Coverity issue: 272576
Fixes: 2f74ae28e2 ("examples/ip_pipeline: add tap object")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
examples/ip_pipeline/tap.c