import memory leak fix for Pipe