From 255825835e7b89233844e93466e8b3ef51c870eb Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Fri, 27 Sep 2019 14:21:52 +0800 Subject: [PATCH] =?UTF-8?q?[kernel][ipc]=20=E4=BF=AE=E5=A4=8D=E5=88=9B?= =?UTF-8?q?=E5=BB=BA0=E9=95=BF=E5=BA=A6=E7=9A=84=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=98=9F=E5=88=97=E5=AE=95=E6=9C=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc.c b/src/ipc.c index 16d714b3f..6a8234a74 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -1900,7 +1900,7 @@ rt_mq_t rt_mq_create(const char *name, mq->msg_pool = RT_KERNEL_MALLOC((mq->msg_size + sizeof(struct rt_mq_message)) * mq->max_msgs); if (mq->msg_pool == RT_NULL) { - rt_mq_delete(mq); + rt_object_delete(&(mq->parent.parent)); return RT_NULL; } -- GitLab