fix leak for bit_reverse