From nobody Sun Feb 8 17:28:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1770133536; cv=none; d=zohomail.com; s=zohoarc; b=XWpdqRlAydrBa3djDie62nP0+96L47XrW19WtYrMh4PWbBFKDkgjpQoCn1ePeKHxkvrVRDtYfoM7wwZeSOzy8vNHZ+WO1p6zTJXsKAW4G2W3/6K1Tv80Rfy7CzvvV+fxMneiWzjjaDUCbpFh+IBe/CZl5PmjQPbNqRyy1n/5DdM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770133536; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=mwSAk2iiTN7lujtIGrYNwx6dZjLbiGEOfKVgSYq2yZ4=; b=mSi/4CI32aV5PDJgTE7ZkYE2rGo+MwyDml7FEHt/Xs+jp5dNuXvzAZHHGRw90EfFQU3viEwD0S7v+b+H5tYU4aujQtY/aR8l1SO59mXPJOIxPScZFEEt283zqCvzR5eEmAIMXsdVySJhe1q+LVLMri5d64/E/tBQYddpVJL+I88= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1770133536177295.492633668708; Tue, 3 Feb 2026 07:45:36 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 3419A41A39; Tue, 3 Feb 2026 10:45:36 -0500 (EST) Received: from [172.19.199.6] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 5F3B343ED3; Tue, 3 Feb 2026 10:41:13 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 94E5641AEE; Tue, 3 Feb 2026 10:41:09 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id E628641BB0 for ; Tue, 3 Feb 2026 10:40:09 -0500 (EST) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-191-zHnl5FsgMNK5or9D8_ah1w-1; Tue, 03 Feb 2026 10:40:08 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4B12519560AA for ; Tue, 3 Feb 2026 15:40:07 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A80F21956053 for ; Tue, 3 Feb 2026 15:40:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770133209; h=from:from: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; bh=mwSAk2iiTN7lujtIGrYNwx6dZjLbiGEOfKVgSYq2yZ4=; b=GxHjSsug2l0BCUz8icYU1uWF69Ahx7EnwEtT14TCB1rs8LAk4LcEMhC37H4BgQhQqzaeXo Z+W89yptMv0aa1+3OTHkkne+rTKlpRUX2i6nFsj0pDQDvwQAZrqgZxuqH2bs9PhJQEER5j KjeFI9pT+yr6S23afxt6bj4sVH+xMNQ= X-MC-Unique: zHnl5FsgMNK5or9D8_ah1w-1 X-Mimecast-MFC-AGG-ID: zHnl5FsgMNK5or9D8_ah1w_1770133207 To: devel@lists.libvirt.org Subject: [PATCH 6/9] bhyvexml2argvtest: Avoid leaking driver caps Date: Tue, 3 Feb 2026 16:39:54 +0100 Message-ID: <5b7079b21376a2c9865d67d6867d91dd5d4d4297.1770133151.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: V8XVVgFr3-qZWVIo9x76tNa7dKkveajlWlL-va6wYtM_1770133207 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: QR23ZMZ4NLS4FR56SOTT7GNSJF34OXOF X-Message-ID-Hash: QR23ZMZ4NLS4FR56SOTT7GNSJF34OXOF X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1770133538393158500 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik Driver capabilities are allocated at the beginning of mymain(), but roughly in the middle the architecture is switched to aarch64 and capabilities are constructed again. Without freeing the old ones. 1,583 (288 direct, 1,295 indirect) bytes in 1 blocks are definitely lost in= loss record 520 of 536 at 0x4888098: calloc (vg_replace_malloc.c:1682) by 0x4EE65CA: g_malloc0 (in /usr/local/lib/libglib-2.0.so.0.8400.4) by 0x53344B8: g_type_create_instance (in /usr/local/lib/libgobject-2.0.s= o.0.8400.4) by 0x531D263: ??? (in /usr/local/lib/libgobject-2.0.so.0.8400.4) by 0x531C75E: g_object_new (in /usr/local/lib/libgobject-2.0.so.0.8400.4) by 0x4AAC806: virObjectNew (virobject.c:252) by 0x4AF366A: virCapabilitiesNew (capabilities.c:87) by 0x401998B: virBhyveCapsBuild (bhyve_capabilities.c:51) by 0x4013E93: mymain (bhyvexml2argvtest.c:155) by 0x4018882: virTestMain (testutils.c:913) by 0x4013DC6: main (bhyvexml2argvtest.c:351) Signed-off-by: Michal Privoznik --- tests/bhyvexml2argvtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/bhyvexml2argvtest.c b/tests/bhyvexml2argvtest.c index c7c18c3690..51273295b5 100644 --- a/tests/bhyvexml2argvtest.c +++ b/tests/bhyvexml2argvtest.c @@ -331,6 +331,7 @@ mymain(void) DO_TEST("bhyveload-timeout"); =20 /* arm64 tests */ + virObjectUnref(driver.caps); virTestSetHostArch(VIR_ARCH_AARCH64); driver.caps =3D virBhyveCapsBuild(); /* bhyve does not support UTC clock on ARM */ --=20 2.52.0