free memory on the fly in repodata_internalize

makes the code only slightly slower, but helps a lot with oversized
repositories like Fedora Everything...