bugfix:clear pending message must release message