[sr-dev] git:master: tm: fix possible segfault in cancel_branch()