thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
958e1b
From 722ac823089706c3c4ea71386eafb4d7062fa7c9 Mon Sep 17 00:00:00 2001
958e1b
From: Gerd Hoffmann <kraxel@redhat.com>
958e1b
Date: Fri, 11 Jul 2014 14:20:47 +0200
958e1b
Subject: [PATCH 13/43] usb: Fix iovec memleak on combined-packet free
958e1b
958e1b
Message-id: <1405088470-24115-15-git-send-email-kraxel@redhat.com>
958e1b
Patchwork-id: 59845
958e1b
O-Subject: [RHEL-7.1 qemu-kvm PATCH 14/37] usb: Fix iovec memleak on combined-packet free
958e1b
Bugzilla: 1075846
958e1b
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
958e1b
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
958e1b
958e1b
From: Hans de Goede <hdegoede@redhat.com>
958e1b
958e1b
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
958e1b
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
958e1b
(cherry picked from commit 0ca6db4f3b3df5c4e5285a48a7709bdced5068de)
958e1b
---
958e1b
 hw/usb/combined-packet.c | 1 +
958e1b
 1 file changed, 1 insertion(+)
958e1b
958e1b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
---
958e1b
 hw/usb/combined-packet.c | 1 +
958e1b
 1 file changed, 1 insertion(+)
958e1b
958e1b
diff --git a/hw/usb/combined-packet.c b/hw/usb/combined-packet.c
958e1b
index 13f6602..ad77705 100644
958e1b
--- a/hw/usb/combined-packet.c
958e1b
+++ b/hw/usb/combined-packet.c
958e1b
@@ -39,6 +39,7 @@ static void usb_combined_packet_remove(USBCombinedPacket *combined,
958e1b
     p->combined = NULL;
958e1b
     QTAILQ_REMOVE(&combined->packets, p, combined_entry);
958e1b
     if (QTAILQ_EMPTY(&combined->packets)) {
958e1b
+        qemu_iovec_destroy(&combined->iov);
958e1b
         g_free(combined);
958e1b
     }
958e1b
 }
958e1b
-- 
958e1b
1.8.3.1
958e1b