]> git.droids-corp.org - dpdk.git/commitdiff
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 05d547ed9e2727caa139a138552bf2a78d244afe..c3169e9d55950bda66616c573327a5585ab9308d 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;
 }