Skip to content

Commit

Permalink
Merge pull request #3279 from armink/fix_rbb
Browse files Browse the repository at this point in the history
[DeviceDriver][IPC] Fix rbb free bug in rt_rbb_destroy.
  • Loading branch information
BernardXiong authored Dec 19, 2019
2 parents 01fa184 + 6228ff5 commit 9111aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/drivers/src/ringblk_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9111aca

Please sign in to comment.