From nobody Sat Apr 20 15:30:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 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=1679068544; cv=none; d=zohomail.com; s=zohoarc; b=d0sHRCiK6dUg3/b5DXwORaPjKofarrLynrqbjABJvBhYQVrzLexinb4WXjfo5xbZL1/wbUXmXb5VlYpKaV0rvxUkT66yxVPliHMQokQdNEBdFHMYJKrGoA5PrDK3AOs3Tiz5p+Gwgv4BXHZkQmHkszm/kfnz3UHULIakBUTHe5U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679068544; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=5YdClWXUtG92JiTum5EWVF15omwXeSVBGCfwGC4/rkw=; b=Dsb6KmLsV7YoA/W0pI/LQ4vUgKgMm0oX6yRLb9YShekvXQIhUbyNfTXWX7uu8jmEAzZaD9sDRIZMTjYfwfPCtMeUHSzv3KdJoGp9N7a4j4TpGBz3VFuUJhDb0+osEQOLKpKbGtI2En2y360XquRJT5KXDu/DXhiz7zqyhG4f2WI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1679068544179228.89720495021186; Fri, 17 Mar 2023 08:55:44 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-155-bf1NGbaKPWuCuPOXfm88ag-1; Fri, 17 Mar 2023 11:55:37 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D05EE10146E1; Fri, 17 Mar 2023 15:55:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id AED922166B2B; Fri, 17 Mar 2023 15:55:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7EB321946A4B; Fri, 17 Mar 2023 15:55:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2FC981946586 for ; Fri, 17 Mar 2023 14:39:56 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 0E7AE40C6E68; Fri, 17 Mar 2023 14:39:56 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.224.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id 93D8C40C6E67 for ; Fri, 17 Mar 2023 14:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679068543; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5YdClWXUtG92JiTum5EWVF15omwXeSVBGCfwGC4/rkw=; b=Fj4ZpjiKBpKZG5oEo2bh3DJvqTJUI3/fntFL5VpuKf56HqLHyWVkMZiD+1XxFNPGQqX9ZK cwPalcWWyuVENg/m7RixujjA50d47EAxUCx0v4Lag3LP5tAIxVc2TYR5WwHd1rM+r4ZmbN 9V9W1I1+FVZNYkwHSuGkCtRpNNf+d2g= X-MC-Unique: bf1NGbaKPWuCuPOXfm88ag-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] tests: qemublocktest: fix memory leak Date: Fri, 17 Mar 2023 15:39:55 +0100 Message-Id: <246d187a0fda00eb7ee3debf8bcbc35472a3e29f.1679063980.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1679068545900100001 Set enccount to 1, so the cleanup function knows there is something to be cleaned up. Fixes: 1992ae40fac90c315d0d8d1a9c6f880bd0a39b57 Signed-off-by: J=C3=A1n Tomko --- Pushed as a trivial build fix. tests/qemublocktest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c index 2d790e2b2e..9a968477d7 100644 --- a/tests/qemublocktest.c +++ b/tests/qemublocktest.c @@ -242,6 +242,7 @@ testQemuDiskXMLToJSONFakeSecrets(virStorageSource *src) =20 srcpriv->encinfo[0]->alias =3D g_strdup_printf("%s-encalias", NULLSTR(src->nodeform= at)); + srcpriv->enccount =3D 1; } =20 return 0; --=20 2.39.2