Removed memory leaks in Percep, located in prod