ps: fix double free