From 590c7b4e22662781d05ad035a785e985d573ec33 Mon Sep 17 00:00:00 2001 From: lnlan Date: Fri, 30 Jul 2021 09:26:22 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmq=5Fclose=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=90=8E=E4=BB=8D=E7=84=B6=E5=8D=A0=E7=94=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=8F=8F=E8=BF=B0=E7=AC=A6=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=E3=80=90=E8=83=8C=E6=99=AF=E3=80=91=20mqueue=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=8E=8B=E5=8A=9B=E6=B5=8B=E8=AF=95=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E5=87=BA=E7=8E=B0=E6=97=A0=E6=B3=95=E7=94=9F=E6=88=90?= =?UTF-8?q?xml=E7=8E=B0=E8=B1=A1=20=E3=80=90=E4=BF=AE=E6=94=B9=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E3=80=91=201.=20=E7=A1=AE=E8=AE=A4=E6=98=AFmq=5Fclose?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=97=B6=E6=9C=AA=E6=B8=85=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=80=81=E6=96=87=E4=BB=B6=E6=8F=8F=E8=BF=B0=E7=AC=A6?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E4=BD=8D=E5=AF=BC=E8=87=B4=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E6=B8=85=E9=99=A4=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3=20?= =?UTF-8?q?=E3=80=90=E5=BD=B1=E5=93=8D=E3=80=91=20=E5=AF=B9=E7=8E=B0?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E4=BA=A7=E5=93=81=E7=BC=96=E8=AF=91=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E6=9C=89=E5=BD=B1=E5=93=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit re #I3ZQDA Signed-off-by: lanleinan Change-Id: I8d467b361465f516ae7105bef38242bfd4805c60 --- syscall/ipc_syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syscall/ipc_syscall.c b/syscall/ipc_syscall.c index 2ebf7457..a905dc3b 100644 --- a/syscall/ipc_syscall.c +++ b/syscall/ipc_syscall.c @@ -78,12 +78,14 @@ mqd_t SysMqOpen(const char *mqName, int openFlag, mode_t mode, struct mq_attr *a int SysMqClose(mqd_t personal) { int ret; + int ufd = (INTPTR)personal; MQUEUE_FD_U2K(personal); ret = mq_close(personal); if (ret < 0) { return -get_errno(); } + FreeProcessFd(ufd); return ret; }