未验证 提交 358a3884 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2254 from misonyo/dev

[driver/ringbuffer]illegal access to freed memory
......@@ -340,6 +340,7 @@ struct rt_ringbuffer* rt_ringbuffer_create(rt_uint16_t size)
if (pool == RT_NULL)
{
rt_free(rb);
rb = RT_NULL;
goto exit;
}
rt_ringbuffer_init(rb, pool, size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册