From cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 22 Sep 2020 21:36:59 -0700 Subject: [PATCH] [sanitizers] Remove the message queue with IPC_RMID after D82897 --- compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c index c31abe9..6fff2c9 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c @@ -25,6 +25,7 @@ int main() { int res = msgsnd(msgq, &msg, MSG_BUFLEN, IPC_NOWAIT); if (res) { fprintf(stderr, "Error sending message! %s\n", strerror(errno)); + msgctl(msgq, IPC_RMID, NULL); return -1; } -- 2.7.4