]> git.ipfire.org Git - thirdparty/qemu.git/commit
hmp/vnc: Fix info vnc list leak
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 23 Mar 2020 12:08:22 +0000 (12:08 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 22 Jun 2020 17:52:12 +0000 (12:52 -0500)
commit674d3822250a8830fb8e9720ce499f2e8cef6a88
tree9f08da5462b95afe92f4ab63259cbc62db366b0b
parent5ff78dc9bcf2a81f097f1137e58f9a0759347d91
hmp/vnc: Fix info vnc list leak

We're iterating the list, and then freeing the iteration pointer rather
than the list head.

Fixes: 0a9667ecdb6d ("hmp: Update info vnc")
Reported-by: Coverity (CID 1421932)
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20200323120822.51266-1-dgilbert@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit d4ff109373ce871928c7e9ef648973eba642b484)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
monitor/hmp-cmds.c