From nobody Fri May 17 04:49:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1660830275; cv=none; d=zohomail.com; s=zohoarc; b=FdxJUkW9fhAMu1LeORh4Qj0dTpm1MIXDhvHJwmmpUu/nxA0B7u2b1ny3fjIq649axK7rmynvQAizIOvaRpVnEhgCvUj7O3zxc4JKm5k7HrjBbe9BDj8d8Jj0TUT5cO8DzI22PiuSdwDh97DEQRR2aNWUWNedGfAZ7h5n6//aEGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660830275; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ogjC2cSjVshEmKJo17AWz/IDS556nogDonYNdJdcW2A=; b=LIBPAub7mFG8wrAs/sFF40VdZBgKQSkXbEkzcKm6EYdSFr0qoqu5KFgSe6Ti98vRnWG6FA0VC9z88N4jkiG80VR0fkgiEcQ3G/A9WLG78+8b1nXkX0UTH1EuUwUgzFlwgnmGaTkUEte9kl0TYMMWj6XQY+hG26PigQvCnvARbds= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1660830275833693.4224558764419; Thu, 18 Aug 2022 06:44:35 -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-86-O1UWBXQROwyagYjaDublEg-1; Thu, 18 Aug 2022 09:44:30 -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 9063A811E81; Thu, 18 Aug 2022 13:44:28 +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 110832166B26; Thu, 18 Aug 2022 13:44:27 +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 DF5B11946A42; Thu, 18 Aug 2022 13:44:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 85EFE1946A41 for ; Thu, 18 Aug 2022 13:44:25 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 72E69400EAB2; Thu, 18 Aug 2022 13:44:25 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6EA43404C6DE for ; Thu, 18 Aug 2022 13:44:25 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 555873C1618C for ; Thu, 18 Aug 2022 13:44:25 +0000 (UTC) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-671-ZfTSh0UaOni7TFgtgWJBGQ-1; Thu, 18 Aug 2022 09:44:24 -0400 Received: by mail-ed1-f72.google.com with SMTP id w17-20020a056402269100b0043da2189b71so963311edd.6 for ; Thu, 18 Aug 2022 06:44:23 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id ks14-20020a170906f84e00b007307c557e31sm863990ejb.106.2022.08.18.06.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 06:44:22 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 09A128F405FD; Thu, 18 Aug 2022 15:44:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660830274; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=ogjC2cSjVshEmKJo17AWz/IDS556nogDonYNdJdcW2A=; b=TcIrXHENmz2TPtPIt2ykdhWVGkcNouISTFlql3LeRwyFcaZ2yeU6OldlTCx83ktM6nkaGI AB1Vi2/vi8UBxrnLiTErUanW94McSGfF/HotAYiDHbveGPJ72HXcsllMl7aPgALPYO98NG D5sqDWSGdbH5MYVhQE1xTi+eDx9mJjg= X-MC-Unique: O1UWBXQROwyagYjaDublEg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: ZfTSh0UaOni7TFgtgWJBGQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=ogjC2cSjVshEmKJo17AWz/IDS556nogDonYNdJdcW2A=; b=vn/RpYXXT0SAaYghP6yKnAG1NZAFbumgve62BYfysfOfII7fy6XGX1Ixqq4dXV3u1L vyifxdk3N9GyVKsMRLadgVZh6kxXZSoJCXdoyPzsgSvWgSDKbYI6hZdYAm59TI8Q7SP5 Z4OfCL5Hb3AikcsEDpCUkifmbhuk0Ah99EAnc6VC8JI7ZNZp45T+KlRbLWGLVOZqnHAS OuT3xEDsPB56CTHB8PRnqQA4Y6FJ36rC+MmRA/WW7QyLJz93uAtrR8len+T6AhJbmgeg mB2NfGIHcl74nf89nUCoHqMdE8NBrdVjMo5eWCYaE2tO9lqWDLaviG47P1DPMxNULcOW CI8g== X-Gm-Message-State: ACgBeo28ksl3Oa44CHGfvH5nSflIGabkGZcK9tWUoEqf7pIS4d3qTKex tuB8xupuFIHT1pL7fC5E0gIXqW6uoJZjFLQWDDwTjqUGJLd1u7LDjDPsJp3X87+2Fr/Eie7NBUr dWG4PoLpa50YO2RGSNvk= X-Received: by 2002:a05:6402:d55:b0:443:9d64:55ea with SMTP id ec21-20020a0564020d5500b004439d6455eamr2391633edb.90.1660830263010; Thu, 18 Aug 2022 06:44:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6X40uNHz99Ll8LVlLUMeQBajCz7Y/NmQeShiPlJe2uaoocdWCpdDsOYSydRLYDC0x8r68x8A== X-Received: by 2002:a05:6402:d55:b0:443:9d64:55ea with SMTP id ec21-20020a0564020d5500b004439d6455eamr2391619edb.90.1660830262762; Thu, 18 Aug 2022 06:44:22 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH] vmx: Fix leak in virVMXParseEthernet Date: Thu, 18 Aug 2022 15:44:19 +0200 Message-Id: <07732916af01f8d0b4e4c11984173d95e27bf946.1660830259.git.mkletzan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 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: , Cc: jtomko@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1660830277871100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Commit 580538c5dd7f forgot to free switchId. Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- src/vmx/vmx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c index 9ad463658aa8..191f0b5e83ff 100644 --- a/src/vmx/vmx.c +++ b/src/vmx/vmx.c @@ -2920,6 +2920,7 @@ virVMXParseEthernet(virConf *conf, int controller, vi= rDomainNetDef **def) VIR_FREE(address); VIR_FREE(virtualDev); VIR_FREE(vnet); + VIR_FREE(switchId); =20 return result; } --=20 2.37.2