measure_branch(): Use _bname instead of _name local variable