29 lines
930 B
Diff
29 lines
930 B
Diff
From 70d792b664ce9e5374f803335056643826985f47 Mon Sep 17 00:00:00 2001
|
|
From: Qi Tao <taoqi10@huawei.com>
|
|
Date: Fri, 10 Nov 2023 11:52:40 +0800
|
|
Subject: [PATCH 71/85] uadk_tool: fix the memory leak problem
|
|
|
|
After calling the wd_release_queue (*q),
|
|
call free(*q) to release the memory pointed to by q.
|
|
|
|
Signed-off-by: Qi Tao <taoqi10@huawei.com>
|
|
---
|
|
uadk_tool/benchmark/sec_wd_benchmark.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/uadk_tool/benchmark/sec_wd_benchmark.c b/uadk_tool/benchmark/sec_wd_benchmark.c
|
|
index aa36c22..f34051e 100644
|
|
--- a/uadk_tool/benchmark/sec_wd_benchmark.c
|
|
+++ b/uadk_tool/benchmark/sec_wd_benchmark.c
|
|
@@ -733,6 +733,7 @@ static void uninit_wd_queue(void)
|
|
for (j = 0; j < g_thread_num; j++) {
|
|
wd_blkpool_destroy(g_thread_queue.bd_res[j].pool);
|
|
wd_release_queue(g_thread_queue.bd_res[j].queue);
|
|
+ free(g_thread_queue.bd_res[j].queue);
|
|
}
|
|
|
|
free(g_thread_queue.bd_res);
|
|
--
|
|
2.25.1
|
|
|