qemu-e2k/contrib
Alex Chen 81ee17aa46 vhost-user-scsi: Fix memleaks in vus_proc_req()
The 'elem' is allocated memory in vu_queue_pop(), and its memory should be
freed in all error branches after vu_queue_pop().
In addition, in order to free the 'elem' memory outside of while(1) loop, move
the definition of 'elem' to the beginning of vus_proc_req().

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20201125013055.34147-1-alex.chen@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-12-08 13:48:57 -05:00
..
elf2dmp elf2dmp: Fix memory leak on main() error paths 2020-10-27 16:48:40 +01:00
gitdm contrib/gitdm: Add more individual contributors 2020-10-27 09:53:47 +00:00
ivshmem-client contrib/: fix some comment spelling errors 2020-09-17 20:41:44 +02:00
ivshmem-server contrib/ivshmem: convert to meson 2020-08-21 06:30:11 -04:00
libvhost-user contrib/libvhost-user: Fix bad printf format specifiers 2020-11-17 04:16:55 -05:00
plugins plugins: Fix two resource leaks in setup_socket() 2020-11-16 11:07:37 +00:00
rdmacm-mux contrib/rdmacm-mux: convert to Meson 2020-08-21 06:30:10 -04:00
systemd contrib: add systemd unit files 2017-12-20 22:29:26 +01:00
vhost-user-blk vhost-user-blk/scsi: Fix broken error handling for socket call 2020-11-17 04:16:55 -05:00
vhost-user-gpu meson: vhost-user-gpu/virtiofsd: use absolute path 2020-11-03 09:42:53 -05:00
vhost-user-input contrib/vhost-user-input: convert to meson 2020-08-21 06:30:10 -04:00
vhost-user-scsi vhost-user-scsi: Fix memleaks in vus_proc_req() 2020-12-08 13:48:57 -05:00