summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorzhangyuyang <[email protected]>2026-09-05 16:48:33 +0800
committerRbb666 <[email protected]>2026-09-21 10:12:51 +0800
commit5d1aee9b3233cf4a18eed32078e115185036a302 (patch)
tree7c160c8739e170e10d22b5dec62a67cb46fe1a14 /components
parentf0b40514f85725aee9f62afe1c7f190699860391 (diff)
[components][sdio] Fix CIS tuple memory leak
Diffstat (limited to 'components')
-rw-r--r--components/drivers/sdio/dev_sdio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/sdio/dev_sdio.c b/components/drivers/sdio/dev_sdio.c
index 61cdf024cd..ebbff7c3ab 100644
--- a/components/drivers/sdio/dev_sdio.c
+++ b/components/drivers/sdio/dev_sdio.c
@@ -613,12 +613,14 @@ static rt_int32_t sdio_read_cis(struct rt_sdio_function *func)
"type %u", tpl_link, curr->data[0]);
}
+ rt_free(curr);
break;
case CISTPL_VERS_1:
if (tpl_link < 2)
{
LOG_D("CISTPL_VERS_1 too short");
}
+ rt_free(curr);
break;
default:
/* this tuple is unknown to the core */