From nobody Sun Feb 8 21:29:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576658267; cv=none; d=zohomail.com; s=zohoarc; b=aSKl4TRyfO48ITAJUZxGKnOk+jhtgPcNqg/us70f8txW/Wos1dMmOkBj/T4EfyCqP4zi92Euw19BjyxaGI0n3HdiR1cd7+wzfPB8dK2tduAMXfY8DI3JK+5/GnYtzFTIFMjNXD3MYpPF1Fcq+R8Fdh/+5LjOxlh8i+qIw2cY2Cs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576658267; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=nRdpiXBg5iP+ulUnkXDj5Mx5MbJ9XoGpZaj2szrLUb4=; b=Y5nsfa0aBZR6biPUG9Nlqc3OU/L6kHKHk2Uq6Y04MQ4TATpJXp8mk2l1E9vnVN4Er2c17KIs1rm2r18/MHl2SJ+WYNQQQHV4AVHoXY4ACdCqkbAf/9BZBJhE7fWTpgnzvSvD2bsroxjHmjX7hkcEn77zpBuLrDrFxUvI0yqHxJA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1576658267887996.4497952067469; Wed, 18 Dec 2019 00:37:47 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-81-WIxyIZ0EN9iQ9qOzRCdSyg-1; Wed, 18 Dec 2019 03:37:43 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 20E36DBED; Wed, 18 Dec 2019 08:37:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EC5A060C81; Wed, 18 Dec 2019 08:37:37 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A717118089CF; Wed, 18 Dec 2019 08:37:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBI8bJfO026798 for ; Wed, 18 Dec 2019 03:37:19 -0500 Received: by smtp.corp.redhat.com (Postfix) id 490EC60C81; Wed, 18 Dec 2019 08:37:19 +0000 (UTC) Received: from localhost.localdomain (ovpn-204-155.brq.redhat.com [10.40.204.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id BE14E60C18 for ; Wed, 18 Dec 2019 08:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576658265; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nRdpiXBg5iP+ulUnkXDj5Mx5MbJ9XoGpZaj2szrLUb4=; b=Q2CHCAjszCq2fjfOMonSeO7WcBRGV9p5pYlasXGWpgxEoYUxOvUhoN9SLXC86P3fe5j6Jm QPDjsM4xylNv9pEKC8eGhwGU8zaKq0RlguEF5UTFyDjrdWVrEGdPnNTpdQLFQ00WQs3iug 3a1LZQ8XrrPbvSUzpMhskUlBoJ1ja2s= From: Michal Privoznik To: libvir-list@redhat.com Date: Wed, 18 Dec 2019 09:37:08 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 5/5] qemu: Don't leak hostcpu or hostnuma on driver cleanup X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: WIxyIZ0EN9iQ9qOzRCdSyg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" When freeing qemu driver struct members, we forgot to free @hostcpu and @hostnuma members. Signed-off-by: Michal Privoznik --- src/qemu/qemu_driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 0b9e31b344..ec8faf384c 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -1135,6 +1135,8 @@ qemuStateCleanup(void) virObjectUnref(qemu_driver->domainEventState); virObjectUnref(qemu_driver->qemuCapsCache); virObjectUnref(qemu_driver->xmlopt); + virCPUDefFree(qemu_driver->hostcpu); + virCapabilitiesHostNUMAUnref(qemu_driver->hostnuma); virObjectUnref(qemu_driver->caps); ebtablesContextFree(qemu_driver->ebtables); VIR_FREE(qemu_driver->qemuImgBinary); --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list