contigmem: free allocated memory on error
authorTiwei Bie <tiwei.bie@intel.com>
Sun, 4 Jun 2017 05:53:23 +0000 (13:53 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jul 2017 23:32:28 +0000 (01:32 +0200)
commit5f51eca22489cc85aea23210d2e61e1f56870b7c
treeddba3be4d935f7235924101c8fa7ff9ac957f402
parent0bba9e60504851a1c32bd799f8bf97c11becf7d5
contigmem: free allocated memory on error

Fixes: 764bf26873b9 ("add FreeBSD support")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/contigmem/contigmem.c