Fix memleak in hp2ps

Issue discovered by Coverity scan, CID 43167.