Fixed ensure_necessary_size() to work properly.
Fixed free_sstring() trying to free what it shouldn't.