From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9tAV-0007M4-LK for qemu-devel@nongnu.org; Thu, 24 Nov 2016 07:30:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9tAQ-0000rN-QY for qemu-devel@nongnu.org; Thu, 24 Nov 2016 07:30:23 -0500 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:35961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9tAQ-0000rG-Mx for qemu-devel@nongnu.org; Thu, 24 Nov 2016 07:30:18 -0500 Received: by mail-oi0-x22b.google.com with SMTP id v84so49404223oie.3 for ; Thu, 24 Nov 2016 04:30:18 -0800 (PST) From: Li Qiang Date: Thu, 24 Nov 2016 07:30:07 -0500 Message-Id: <1479990609-28243-1-git-send-email-liq3ea@gmail.com> Subject: [Qemu-devel] [PATCH 0/2] fix memory leak in virtio_gpu_resource_destroy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kraxel@redhat.com, marcandre.lureau@gmail.com, qemu-devel@nongnu.org Cc: liqiang6-s@360.cn, Li Qiang If the guest destroy the resource before detach banking, the 'iov' and 'addrs' field in resource is not freed thus leading memory leak issue. This patchset address this. Li Qiang (2): virtio-gpu: add declaration for virtio_gpu_cleanup_mapping function virtio-gpu: call cleanup mapping function in resource destroy hw/display/virtio-gpu.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.8.3.1