[dpdk-dev,1/6] test: fix memory leak in bitmap test
Checks
Commit Message
Fixes: c7e4a134e769 ("test: verify bitmap operations")
Cc: pbhagavatula@caviumnetworks.com
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
test/test/test_bitmap.c | 3 +++
1 file changed, 3 insertions(+)
Comments
> -----Original Message-----
> From: Burakov, Anatoly
> Sent: Friday, December 22, 2017 10:12 AM
> To: dev@dpdk.org
> Cc: Dumitrescu, Cristian <cristian.dumitrescu@intel.com>;
> pbhagavatula@caviumnetworks.com
> Subject: [PATCH 1/6] test: fix memory leak in bitmap test
>
> Fixes: c7e4a134e769 ("test: verify bitmap operations")
> Cc: pbhagavatula@caviumnetworks.com
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
> test/test/test_bitmap.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/test/test/test_bitmap.c b/test/test/test_bitmap.c
> index 5c9eee9..7045d33 100644
> --- a/test/test/test_bitmap.c
> +++ b/test/test/test_bitmap.c
> @@ -186,6 +186,9 @@ test_bitmap(void)
> if (test_bitmap_scan_operations(bmp) < 0)
> return TEST_FAILED;
>
> + rte_bitmap_free(bmp);
> + rte_free(mem);
> +
> return TEST_SUCCESS;
> }
>
> --
> 2.7.4
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
@@ -186,6 +186,9 @@ test_bitmap(void)
if (test_bitmap_scan_operations(bmp) < 0)
return TEST_FAILED;
+ rte_bitmap_free(bmp);
+ rte_free(mem);
+
return TEST_SUCCESS;
}