[PATCH 03/25] virLogHandlerPreExecRestart: Refactor memory cleanup