Fixed memory leak in IPC

If CRC doesn't match heap memory was not freed