Merge "tools/bit: Avoid leak in error condition"