test/ring: fix memory leak
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 6 Feb 2018 13:35:39 +0000 (13:35 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Feb 2018 18:45:29 +0000 (19:45 +0100)
commit14ec04e1ae0f55c68d2c718e3a6cf9e6b6adeac4
treec0d265fc8950881b08ec8ea57e1e34b4b51e33ab
parent8d0e39debc2eaaf684d78d222152b34f08a325b5
test/ring: fix memory leak

Get rid of global static ring variable and don't reuse rings
between test runs.

Acked-by: Olivier Matz <olivier.matz@6wind.com>
Fixes: 4e32101f9b01 ("ring: support freeing")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/test_ring.c