usb-redirect: Avoid double free of data
authorFam Zheng <famz@redhat.com>
Wed, 24 Feb 2016 08:08:08 +0000 (16:08 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 29 Feb 2016 10:45:26 +0000 (11:45 +0100)
commite8ce12d9eaeedeb7f8d9debcd4c9b993903f1abb
tree568079890ff5093c3580d3bb1c6dd483a74f9ef1
parentbeded0ff7f41236dc29d01ef34fb1fa570e767c0
usb-redirect: Avoid double free of data

If dropping packets, data is freed, the caller's loop should not continue.

Reported by ccc-analyzer.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1456301288-1592-1-git-send-email-famz@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c