test/bitmap: fix memory leak
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 6 Feb 2018 13:35:37 +0000 (13:35 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Feb 2018 18:45:29 +0000 (19:45 +0100)
Fixes: c7e4a134e769 ("test: verify bitmap operations")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
test/test/test_bitmap.c

index 05d547e..c3169e9 100644 (file)
@@ -158,6 +158,9 @@ test_bitmap(void)
        if (test_bitmap_scan_operations(bmp) < 0)
                return TEST_FAILED;
 
+       rte_bitmap_free(bmp);
+       rte_free(mem);
+
        return TEST_SUCCESS;
 }