Free pps when converting list to js array.