Remove dead code
Fixes use after free during ipcs client disconnect
Fixes use ater free in shm disconnect
Prevent use after free in benchmark util
Fixes fd leak
Fixes double fd close
Fixes double close
fixes double close
Fixes less-than-zero comparision of unsigned int
Fixes sem leak
Fixes detect disconnect on send for tcp example