From nobody Tue May 14 16:18:30 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=1690007237; cv=none; d=zohomail.com; s=zohoarc; b=fF2JT6H+UR1ZoWsURrpn7JN4qHMcc6+NjsJTJmAWq7DhLk7oC2+3S4yHtii+npwVdOk1yS2DFNIJW6PVt05dBo7F/uNVzWoNQ1O/uu4lS4c3WKnAAN1yOIXM+zpGg2gXQOJoGA2pcPhQ03Qh/K8ji8o01GXp9k25kqjfc/i45z4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690007237; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject; bh=igkg25D9DpaLjmRPnKedm/HR+c3ExF/v30NY6pfyyvw=; b=NB6gK+eKA6svAPFK20K+DpwOOGT2jY6ibdPN1Q8f+DeBTRpgsOcJPRJTE7iWBMwVwgEJvm58mARMUJaZUC0XtYLahSvIdDsF9EiEidrnipMT8JgSUZf6zUAlRZSSqZ+DfiCOF1x84ImYuuALS6XjayjjBGgPaDepIkrCVasA1vA= 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 1690007237566212.76530811959458; Fri, 21 Jul 2023 23:27:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qN64x-0003zy-TJ; Sat, 22 Jul 2023 02:26:59 -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 1qN64o-0003zX-Lh for qemu-devel@nongnu.org; Sat, 22 Jul 2023 02:26:50 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qN64m-0005PX-Sm for qemu-devel@nongnu.org; Sat, 22 Jul 2023 02:26:50 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-666ecf9a0ceso1658859b3a.2 for ; Fri, 21 Jul 2023 23:26:47 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with ESMTPSA id d16-20020aa78e50000000b006827d86ca0csm3941014pfr.55.2023.07.21.23.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 23:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1690007206; x=1690612006; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=igkg25D9DpaLjmRPnKedm/HR+c3ExF/v30NY6pfyyvw=; b=DH18i8EB6KCP1kW0KRaDB1TNdpIXrwOyzJpHT+LhqTjlT1rpiMC4NhJH6UWl3L8JBV qEfQTHtYh5aOqL7uBc+eoixAj/x5P+lO6jyM3+v2jEqHecDAEEA+HBa17TF9xT1QgsS7 2fcps0IK3oMzD9/Nd4JvI2Kzj+UubYslEyUOa60RuLlPZxOdH97v3m3NjLX8Iq4tQuXi pILeXqqrUt/VoNK2S1rM2hU/qZSEHCr15JWtw2PsjmsVHpwxwIE3GfoZqy6RnKlWtEA/ 3rGqWRtfxtsvdVM7Vil4m8tjvW8M8FR7lBkrm90NNdNry6C9xRibYSA47iVZxIOuTLhN GHew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690007206; x=1690612006; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=igkg25D9DpaLjmRPnKedm/HR+c3ExF/v30NY6pfyyvw=; b=HmseJpqthzQDfH+bpJ6MuauVLTDYhMnkWmIcDDnXtvQ4IW+Md0CnCW1hs4u5Y30XsM ijZGjHjSluQaaDMWe1EB14Zc8f7wc67++HCcmcnIPwKZsc0GhLzk2Cbo2VQY3wEYCAGN trM+UbN0OzJfW8iBVF58et0rkm+A9zvtLsGy7lU0VWO7vIexCxMi0Ellua6OQ7k7ci2a /fl1w+tXLOzd5RoLiY1v/7nO1T42Y9ZHCxEN+6isX72wRPuGUUrOi1kXeNGqXbx8FoQH iUzACL58tn9TRSSaqU/QLtqGrmKlLEGkVjBbJSGhF4eFlkqt+X08zR22yCCkH16mFafZ oO3g== X-Gm-Message-State: ABy/qLbzy1irqXRMis0V7FjjYbgjzYHrMFdH9PjQ+SuaoJhuyD0aD7OQ mZRZKtFEnsleoK5wUdS2Zf5DtQF+v8VMMQEu5Is= X-Google-Smtp-Source: APBJJlGrx6G+/hEI6KVhpKdysGeaJZB7dZQBMjVbZvX3NGGV87/etE37Ggm//r3nAON2E8FzL4OikA== X-Received: by 2002:a05:6a00:2492:b0:673:5d1e:6654 with SMTP id c18-20020a056a00249200b006735d1e6654mr2696331pfv.33.1690007206446; Fri, 21 Jul 2023 23:26:46 -0700 (PDT) From: Akihiko Odaki To: Cc: qemu-devel@nongnu.org, Paolo Bonzini , Akihiko Odaki Subject: [PATCH] vl: Free machine list Date: Sat, 22 Jul 2023 15:26:40 +0900 Message-ID: <20230722062641.18505-1-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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::431; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x431.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, T_SCC_BODY_TEXT_LINE=-0.01 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.20221208.gappssmtp.com) X-ZM-MESSAGEID: 1690007239356100003 Content-Type: text/plain; charset="utf-8" Free machine list and make LeakSanitizer happy. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- softmmu/vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index b0b96f67fa..802f728298 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -1484,7 +1484,8 @@ static gint machine_class_cmp(gconstpointer a, gconst= pointer b) =20 static void machine_help_func(const QDict *qdict) { - GSList *machines, *el; + g_autoptr(GSList) machines =3D NULL; + GSList *el; const char *type =3D qdict_get_try_str(qdict, "type"); =20 machines =3D object_class_get_list(TYPE_MACHINE, false); --=20 2.41.0