mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
sched/mqueue: fix resource leak in mq_timedsend()
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -239,6 +239,7 @@ int file_mq_timedsend(FAR struct file *mq, FAR const char *msg,
|
|||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
{
|
{
|
||||||
ret = -ret;
|
ret = -ret;
|
||||||
|
nxmq_free_msg(mqmsg);
|
||||||
goto errout_in_critical_section;
|
goto errout_in_critical_section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user