From nobody Mon Nov 25 01:39:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1719400136; cv=none; d=zohomail.com; s=zohoarc; b=FDdD4Jco87xC5qWGI5ZiKz13oXLibFdQJAvhnyPANJRDiO1X+7tOoHQXH6wbcVYX+iI8lKCcQOdH4sIujWBmrcV6bstnqnX/wdyzft2T66naE/FbPYAbao5BeeZDgDBBvBVn6NxUOCjE9+cpMwGQXQac++dM7RGCFlyhkk8TLYE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1719400136; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mUrmTt8+oFrzMkNkVkHTZpmYshFavrmG3OzzHBupQWA=; b=bD428Vbcfnkr+fyaxELkQd0IDnlUVVtJq//j6rcqybqdFkj+HlX/34QCRpgICc2NJ+uCUDqDfB+To8v7fEFhiub/zwESVUd6js6zfuNEDNLJE+hw3zB8OeKP51WMLTgqXBfmuvYvgogy+19q3m6tkOE6PX67OTN3nGxMpkJPhjs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1719400136472654.5282326799035; Wed, 26 Jun 2024 04:08:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMQV6-0006KQ-Ap; Wed, 26 Jun 2024 07:07:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMQUv-0005wi-Lz for qemu-devel@nongnu.org; Wed, 26 Jun 2024 07:07:35 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMQUp-0004kx-OM for qemu-devel@nongnu.org; Wed, 26 Jun 2024 07:07:33 -0400 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-6e3741519d7so4515848a12.2 for ; Wed, 26 Jun 2024 04:07:23 -0700 (PDT) Received: from localhost ([157.82.204.135]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2c8d8061497sm1380082a91.34.2024.06.26.04.07.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jun 2024 04:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1719400041; x=1720004841; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mUrmTt8+oFrzMkNkVkHTZpmYshFavrmG3OzzHBupQWA=; b=yhKuopH7NajgdB0EjwxQaCBPu3qyb8EajO8IOqVMA6b2IIfReFhhTQOX6rNEBjmjrO g32wB5dliPrTZrS5oH9auxe7pq69dWt1SiDhwjSB6cZL3d1bZW7iySCxIKTttBK20iNI EZQPHIomKhE/vWiM9yRUGOzKZVmG32bKxj2Dg4kWL7TMPkfvxnlrp0kYnusIKHoWgPeI JrVU2lwhN9BsrfKEtySQf7NHRF7+NIu1uSFrNvn8IdKcD4UKBzyrYzaGL6KYoHEDMF5X 9fZzRPO6fnBXXol4xQjO5Ny7ZVZ1IKDjAQHPo7+jVsntMAniafzvUS7Ctyg/6ltGzAD8 LEoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719400041; x=1720004841; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mUrmTt8+oFrzMkNkVkHTZpmYshFavrmG3OzzHBupQWA=; b=ePiwwyMo1aHBb1m8ANDzYKXu/TlD2Tj5Rx0b7Ik7rjbefCeyoNhYlELTbXhZDh1W5n dFZJ6kXdYisMNLsnfJqinyVtLr3o7/5oDpo8BKX+gC8k6wMU9AV3AL2EWWDQKIEjOU58 7mzxvG1bH2Ggzob9bk6ep/OPzPXh0gs3cT9teavic46AT6/zSm/qaErMUF7QsLjFcIvY LlOhR0e6gc3tPyKlD7V2MQZOvh5pufuqrC5pPbHHb2PZ+KzDmD3acp9rYBSOY+FIeXYP A37rRYH7k8rRPY5Kt7/wdnQ+BwXz5k/oZE3TCYm1Hs+AAUD78CnYkj6uKDlFcw/qvpzF HK3g== X-Gm-Message-State: AOJu0YyWDnIF3iP4hj1qnUcUy4argv5zEZoffY3VYpfZM8To5FRQd29q TFxRzBPosP/NXOtGcXBtaTcxFxpotvYwq/iqfQE1JOPk3cksI1MvqrpFUm8YIJs= X-Google-Smtp-Source: AGHT+IE4qbHI1diVoBe9v5IequM5ti+nRE8x43HfaWZexsEG4+NNwDbERwgbGUr7DxNcZjxO9MjDLw== X-Received: by 2002:a17:90a:8c91:b0:2c8:538d:95b7 with SMTP id 98e67ed59e1d1-2c8538d9832mr8818555a91.32.1719400040964; Wed, 26 Jun 2024 04:07:20 -0700 (PDT) From: Akihiko Odaki Date: Wed, 26 Jun 2024 20:06:30 +0900 Subject: [PATCH 07/14] migration: Free removed SaveStateEntry MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240626-san-v1-7-f3cc42302189@daynix.com> References: <20240626-san-v1-0-f3cc42302189@daynix.com> In-Reply-To: <20240626-san-v1-0-f3cc42302189@daynix.com> To: Eduardo Habkost , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Yanan Wang , John Snow , BALATON Zoltan , Jiaxun Yang , Nicholas Piggin , Daniel Henrique Barboza , David Gibson , Harsh Prateek Bora , Alexey Kardashevskiy , "Michael S. Tsirkin" , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Xu , Fabiano Rosas , Paolo Bonzini , David Hildenbrand , Thomas Huth , Laurent Vivier Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, qemu-ppc@nongnu.org, Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::52d; envelope-from=akihiko.odaki@daynix.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1719400138000100001 This suppresses LeakSanitizer warnings. Signed-off-by: Akihiko Odaki Reviewed-by: Peter Xu --- migration/savevm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/savevm.c b/migration/savevm.c index c621f2359ba3..10b261823b7c 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -874,6 +874,8 @@ int vmstate_replace_hack_for_ppc(VMStateIf *obj, int in= stance_id, =20 if (se) { savevm_state_handler_remove(se); + g_free(se->compat); + g_free(se); } return vmstate_register(obj, instance_id, vmsd, opaque); } --=20 2.45.2