[PATCH 10/25] qemuAgentMakeCommand: Refactor memory cleanup