[GIT PULL 1/3] stm class: Fix channel free in stm output free path