lib/package_unpack.c: fix a double free.