From: Qi Tao taoqi10@huawei.com
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);