Fixed an IPC shm leak