fixed for memory free in pcaploop