Fixing leak of message in OS IPC