Fix: pengine: Prevent memory leak on handling pending state
Merge pull request #436 from gao-yan/pending-task-leak

Fix: pengine: Prevent memory leak on handling pending state