From nobody Mon Feb 9 10:32:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.25 as permitted sender) client-ip=209.132.183.25; envelope-from=libvir-list-bounces@redhat.com; helo=mx4-phx2.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.25 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by mx.zohomail.com with SMTPS id 1486369533947993.5436185493344; Mon, 6 Feb 2017 00:25:33 -0800 (PST) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v168Lq9l019652; Mon, 6 Feb 2017 03:21:52 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v168LSM1022132 for ; Mon, 6 Feb 2017 03:21:28 -0500 Received: from lisa.redhat.com (ovpn-204-17.brq.redhat.com [10.40.204.17]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v168LO2Q020197 for ; Mon, 6 Feb 2017 03:21:27 -0500 From: Michal Privoznik To: libvir-list@redhat.com Date: Mon, 6 Feb 2017 09:21:19 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/5] testUSBList: don't leak @dev 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" =3D=3D22187=3D=3D 77 (56 direct, 21 indirect) bytes in 1 blocks are definit= ely lost in loss record 23 of 37 =3D=3D22187=3D=3D at 0x4C2BC75: calloc (vg_replace_malloc.c:624) =3D=3D22187=3D=3D by 0x4E75685: virAlloc (viralloc.c:144) =3D=3D22187=3D=3D by 0x4F0613A: virUSBDeviceNew (virusb.c:332) =3D=3D22187=3D=3D by 0x4F05BA2: virUSBDeviceSearch (virusb.c:183) =3D=3D22187=3D=3D by 0x4F05F95: virUSBDeviceFind (virusb.c:296) =3D=3D22187=3D=3D by 0x403514: testUSBList (virusbtest.c:209) =3D=3D22187=3D=3D by 0x403BD8: virTestRun (testutils.c:180) =3D=3D22187=3D=3D by 0x4039E5: mymain (virusbtest.c:285) =3D=3D22187=3D=3D by 0x4056BC: virTestMain (testutils.c:992) =3D=3D22187=3D=3D by 0x403A4A: main (virusbtest.c:293) Signed-off-by: Michal Privoznik --- tests/virusbtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/virusbtest.c b/tests/virusbtest.c index 4bbfe4af9..7cddb89af 100644 --- a/tests/virusbtest.c +++ b/tests/virusbtest.c @@ -217,6 +217,7 @@ testUSBList(const void *opaque ATTRIBUTE_UNUSED) } =20 virUSBDeviceListDel(list, dev); + virUSBDeviceFree(dev); dev =3D NULL; =20 if (testCheckNdevs("After deleting one", --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list