deleted buffer and shared memory