[sanitizers] Remove the message queue with IPC_RMID after D82897

This commit is contained in:
Fangrui Song 2020-09-22 21:36:59 -07:00
parent f1746be666
commit cabe31f415
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}