[PATCH] stm class: Fix channel free in stm output free path