diff mbox

validation: fixed memory leak in odp_cpumask.c

Message ID 1426846502-19353-1-git-send-email-christophe.milard@linaro.org
State Superseded
Headers show

Commit Message

Christophe Milard March 20, 2015, 10:15 a.m. UTC
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 test/validation/odp_cpumask.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/test/validation/odp_cpumask.c b/test/validation/odp_cpumask.c
index 2285034..b7e18d6 100644
--- a/test/validation/odp_cpumask.c
+++ b/test/validation/odp_cpumask.c
@@ -148,6 +148,9 @@  static void test_odp_cpumask_to_from_str(void)
 
 	CU_ASSERT_NSTRING_EQUAL(buf_out, TEST_MASK_CPU_0,
 				stringlen(TEST_MASK_CPU_0) + 1);
+
+	free(buf_out);
+	free(buf_in);
 }
 
 static void test_odp_cpumask_equal(void)