From 9b062978455d9c77fc13afcf0f3c5f83a875800c Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Tue, 17 Dec 2024 14:19:23 +0100 Subject: [PATCH] test: profile: fixed warning Signed-off-by: Leonardo Alminana --- tests/profile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/profile.c b/tests/profile.c index 2559ffd..fcc22c4 100644 --- a/tests/profile.c +++ b/tests/profile.c @@ -108,7 +108,7 @@ static void test_profile() TEST_CHECK(cprof != NULL); /* create profile */ - profile = cprof_profile_create(cprof); + profile = cprof_profile_create(); TEST_CHECK(profile != NULL); cprof_sample_type_str_create(profile, "CPU time", "ns", CPROF_AGGREGATION_TEMPORALITY_CUMULATIVE); @@ -154,6 +154,8 @@ static void test_profile() print_profile(profile); + cprof_profile_destroy(profile); + /* destroy context */ cprof_destroy(cprof); }