bit_realloc does not replace the incoming pointer with the new one like
xrealloc does, the previous code was resulting in all sorts of bad memory references/frees. This should fix it. I checked the rest of the code and these were the only ones that made the mistake.
Please register or sign in to comment