From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzW4-0005le-74 for qemu-devel@nongnu.org; Wed, 27 Jul 2011 04:30:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlzW3-0005VK-6i for qemu-devel@nongnu.org; Wed, 27 Jul 2011 04:30:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzW2-0005VG-UU for qemu-devel@nongnu.org; Wed, 27 Jul 2011 04:30:55 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6R8UsrX030874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Jul 2011 04:30:54 -0400 From: Amit Shah Date: Wed, 27 Jul 2011 14:00:28 +0530 Message-Id: Subject: [Qemu-devel] [PATCH 0/4] Fix virtio memleaks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Kevin Wolf , Amit Shah , Markus Armbruster , "Michael S. Tsirkin" The memory allocated in virtio_common_init() wasn't being freed anywhere. Fix that. The balloon handler wasn't unregistering its savevm section, adding an exit handler fixes that as well. This patchset is on top of the two balloon series I've sent out yesterday and today. Amit Shah (4): virtio-balloon: Add exit handler, fix memleaks virtio-blk: Fix memleak on exit virtio-net: Fix potential use-after-free virtio: Plug memleak by freeing vdev hw/virtio-balloon.c | 9 +++++++++ hw/virtio-blk.c | 1 + hw/virtio-net.c | 2 +- hw/virtio-pci.c | 11 ++++++++++- hw/virtio.c | 1 + hw/virtio.h | 1 + 6 files changed, 23 insertions(+), 2 deletions(-) -- 1.7.6