test/memzone: fix NULL freeing
authorPhil Yang <phil.yang@arm.com>
Mon, 15 Jan 2018 05:43:32 +0000 (13:43 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jan 2018 23:48:34 +0000 (00:48 +0100)
commita7b5b4f1b3febec68dc7b8ba339f4b222750952b
treea681fe1991668e7045864c4ad4ff8c8961f14f19
parent82da6af3ca4ad9aa1316792f90b2f88cd3020456
test/memzone: fix NULL freeing

No need to free a NULL memzone. It will cause test
termination.

Fixes: 71330483a193 ("test/memzone: fix memory leak")
Cc: stable@dpdk.org
Signed-off-by: Phil Yang <phil.yang@arm.com>
Acked-by: Jianbo Liu <jianbo.liu@arm.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/test_memzone.c