shared memory header working, memory leak present