Fix coredump in pkg-add.

Do not double free pkg_inst object.