summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorStefan Hajnoczi2020-09-24 17:15:43 +0200
committerStefan Hajnoczi2020-10-23 14:42:16 +0200
commit8c7f7cbca0eb49cc86333ef8fa8068abb400520e (patch)
treea5fd31d6e2ff366b20bcf06609a2bdb7b19512e2 /qapi
parentutil/vhost-user-server: drop unused DevicePanicNotifier (diff)
downloadqemu-8c7f7cbca0eb49cc86333ef8fa8068abb400520e.tar.gz
qemu-8c7f7cbca0eb49cc86333ef8fa8068abb400520e.tar.xz
qemu-8c7f7cbca0eb49cc86333ef8fa8068abb400520e.zip
util/vhost-user-server: fix memory leak in vu_message_read()
fds[] is leaked when qio_channel_readv_full() fails. Use vmsg->fds[] instead of keeping a local fds[] array. Then we can reuse goto fail to clean up fds. vmsg->fd_num must be zeroed before the loop to make this safe. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20200924151549.913737-8-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions