Fix a leak in the branch creation dialog.