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)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 25 Mar 2020 12:31:38 +0000 (12:31 +0000)
commitd4ff109373ce871928c7e9ef648973eba642b484
treef592d9f7cdae2a04433496792d38b788a20282a9
parent6d1da867e65f72b890e736a36cbaa9146a824b64
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>
monitor/hmp-cmds.c