Fixed missing inline for cleanup.

Review: https://reviews.apache.org/r/19214