Make bformatdec_free and ambiup_free clear the freed pointer