summaryrefslogtreecommitdiff
path: root/components/drivers/src/ringblk_buf.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-12-19 14:59:29 +0800
committerGitHub <[email protected]>2019-12-19 14:59:29 +0800
commit9111aca176a33e83ab853183230050ee81cda89e (patch)
tree506fb27cc1233442b6287698e12bc3593a86a0af /components/drivers/src/ringblk_buf.c
parent01fa184f9a019af654a6c5f24268362aad06eed3 (diff)
parent6228ff5e98d98b7094b1686f466d4f5875277c45 (diff)
Merge pull request #3279 from armink/fix_rbbv4.0.2
[DeviceDriver][IPC] Fix rbb free bug in rt_rbb_destroy.
Diffstat (limited to 'components/drivers/src/ringblk_buf.c')
-rw-r--r--components/drivers/src/ringblk_buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/src/ringblk_buf.c b/components/drivers/src/ringblk_buf.c
index 86e812cd4c..7d83149c5e 100644
--- a/components/drivers/src/ringblk_buf.c
+++ b/components/drivers/src/ringblk_buf.c
@@ -95,9 +95,9 @@ void rt_rbb_destroy(rt_rbb_t rbb)
{
RT_ASSERT(rbb);
- rt_free(rbb);
rt_free(rbb->buf);
rt_free(rbb->blk_set);
+ rt_free(rbb);
}
RTM_EXPORT(rt_rbb_destroy);