
13 Jun
2025
13 Jun
'25
3:01 p.m.
From: Zhushuai Yin <yinzhushuai@huawei.com> The agg resources may not be released, causing memory leakage. The code is fixed. Signed-off-by Zhushuai Yin <yinzhushuai@huawei.com> Signed-off-by: Qi Tao <taoqi10@huawei.com> --- wd_agg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wd_agg.c b/wd_agg.c index efb25f6d..33fa0f82 100644 --- a/wd_agg.c +++ b/wd_agg.c @@ -609,9 +609,10 @@ out_clear_ctx_config: static int wd_agg_alg_uninit(void) { - void *priv = wd_agg_setting.priv; + enum wd_status status; - if (!priv) + wd_alg_get_init(&wd_agg_setting.status, &status); + if (status == WD_UNINIT) return -WD_EINVAL; /* Uninit async request pool */ -- 2.33.0