Correct potential leaks in xapp class.

No match.