Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qga/commands-posix: fix use after free of local_err
local_err is used several times in guest_suspend(). Setting non-NULL local_err will crash, so let's zero it after freeing. Also fix possible leak of local_err in final if(). Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> Message-Id: <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Markus Armbruster <[email protected]>
- Loading branch information