Fix memory leak in pkg-repo.

Free memory when we do not add a package to the resulting site for
some reason.