I think we should free() PIDs_programs array here as well