customizable shared memory names
fix mem leak