[components][sdio] Fix CIS tuple memory leak

This commit is contained in:
zhangyuyang
2026-09-21 10:12:51 +08:00
committed by Rbb666
parent f0b40514f8
commit 5d1aee9b32
+2
View File
@@ -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 */