fixed memleak in linux listfiles