sched/mqueue: fix resource leak in mq_timedsend()
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
f69251151e
commit
e586f86918
|
@ -239,6 +239,7 @@ int file_mq_timedsend(FAR struct file *mq, FAR const char *msg,
|
|||
if (ret != OK)
|
||||
{
|
||||
ret = -ret;
|
||||
nxmq_free_msg(mqmsg);
|
||||
goto errout_in_critical_section;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue