Thread (47 messages) 47 messages, 4 authors, 2018-02-06

Re: [PATCH 1/6] test: fix memory leak in bitmap test

From: Dumitrescu, Cristian <hidden>
Date: 2018-01-11 14:16:44

quoted hunk ↗ jump to hunk
-----Original Message-----
From: Burakov, Anatoly
Sent: Friday, December 22, 2017 10:12 AM
To: dev@dpdk.org
Cc: Dumitrescu, Cristian <redacted>;
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 <redacted>
---
 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 <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help