From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 93E6A3888838 for ; Fri, 18 Mar 2022 06:51:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93E6A3888838 Received: by mail-pl1-x634.google.com with SMTP id p17so6308901plo.9 for ; Thu, 17 Mar 2022 23:51:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=Mn62dieIduOOjdu7c7SXUEiGKImmtXsUZFsbO9bB3i0=; b=zD60/cOcBwIMthXiH79uXKSBLK8jgW+wZxuVGXxPn96PncDqHu2Lr1ePbSw8pGpj8P nPzOOIF7yaqjmdeMahyx22mvHPjSfNA+9B3U4x0q371bg3KtT6PMlEDFkagjPQGhU1i8 X7Hi0/wYIJNkYFaNXA6KXTVyAYLPQvR0flS4jiY8qBPLfXCMRUQWqdg5eiBdUYscLesO yor3d+m8c8ksDjAutA42dMxsiF5XtHnhCTBdVfanMemctX/as3VZ6Ch5vTR63YafjsVI XO1XafHYFwKBi41A1U4cCP8ZvSNu5luBggXatuFmTtqKDx7W6QPpbVFo0ZyYO9KegoNG fvSg== X-Gm-Message-State: AOAM5329upPvum74Xq0VNi3249RpHuWJ478cljg80GYRz87fHmP6/qxB 3sNCqpOvvZD/F3AylsZwPhCshm4QWrU= X-Google-Smtp-Source: ABdhPJw26kkBjqJMQ5RzXFs/UW2CyYjKYceziTOGAypdMd/tvEqFK2R95NygscXoYS8iXy4E9V3JhA== X-Received: by 2002:a17:902:b7c9:b0:153:f2e4:18f0 with SMTP id v9-20020a170902b7c900b00153f2e418f0mr6351088plz.100.1647586310261; Thu, 17 Mar 2022 23:51:50 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id g12-20020a056a0023cc00b004f707cc97f9sm9048592pfc.52.2022.03.17.23.51.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 23:51:49 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 2C3971142FD1; Fri, 18 Mar 2022 17:21:47 +1030 (ACDT) Date: Fri, 18 Mar 2022 17:21:47 +1030 From: Alan Modra To: binutils@sourceware.org Subject: Tidy gas current_frame before exit Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3037.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2022 06:51:52 -0000 Releases some obstack memory on an error path. * cond.c (cond_finish_check): Call cond_exit_macro. diff --git a/gas/cond.c b/gas/cond.c index d5c0911d77e..b6e538a846f 100644 --- a/gas/cond.c +++ b/gas/cond.c @@ -561,6 +561,7 @@ cond_finish_check (int nest) as_bad_where (current_cframe->else_file_line.file, current_cframe->else_file_line.line, _("here is the \"else\" of the unterminated conditional")); + cond_exit_macro (nest); } } -- Alan Modra Australia Development Lab, IBM