Added sanity check to free regions to confirm seg fault