Re: [PATCH v4 3/6] test: fix memory leak in ring autotest
From: Thomas Monjalon <hidden>
Date: 2018-02-06 00:36:20
From: Thomas Monjalon <hidden>
Date: 2018-02-06 00:36:20
05/02/2018 14:03, Anatoly Burakov:
Get rid of global static ring variable and don't reuse rings
between test runs.
Fixes: 4e32101f9b01 ("ring: support freeing")
Cc: pablo.de.lara.guarch@intel.com
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <redacted>
Acked-by: Olivier Matz <redacted>There is an error caught by clang: test/test/test_ring.c:676:6: fatal error: variable 'rp' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]