Message ID | 20230402150515.40826-1-rep.dot.nop@gmail.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 499483854831 for <patchwork@sourceware.org>; Sun, 2 Apr 2023 15:06:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 499483854831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680447971; bh=D05EQJz6RNbCYb9DoEEunnEV6ujGGtwTuGAm6xW65vY=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=nMij1i6fBfUYDZll9HzVfBq9D43K/twJqdzbGrHsO1Hy42M4dv5BNRJ6fwrRDIUgX 4qHeg6QHdrDBFgDPS+55oqe5Dtobl1nw/3M4qQoD3O0UI3d1AVUsUddlDeQyW0de6/ fB2L30byJOR3OoisFFRJMyDU41l9I0Hycbh+sGv8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id EBE7D3858CDB; Sun, 2 Apr 2023 15:05:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EBE7D3858CDB Received: by mail-ed1-x533.google.com with SMTP id b20so107876132edd.1; Sun, 02 Apr 2023 08:05:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680447939; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D05EQJz6RNbCYb9DoEEunnEV6ujGGtwTuGAm6xW65vY=; b=TS5Psx1vYPEFUPiDwG9YX7ALIvxzjuTgjc9CLPoGthzCtl4N8D6ICjYtBjbIwedVYP gLW2GNurhxyZdeFWMDUlHaQvABvnaZ37vmFpcrCzoYGjJRq95HGeAIYp9CO505YHcKjf bXuf34pQNeBVpKPkFoYk0GSQO5ttzf+R3PlxppjcxYwyAObFsh9nvUlOa2D3EAITxlBD 6YYMjG5/Slyl57u5hDFOZm4sCVoADc/iM/y1/NU7ZfB1UDWXq/yCBUVf8BkjbM56SKCy DFTa0e65w+Dv0Q7UtpYe885Hh63T4WXEj5irWF6ioxuK6NszEuwh+2SZkTS6bZdbRRRi htOw== X-Gm-Message-State: AAQBX9f5s+Q4MUoZ9GBin0e31k5JdJ7+t6KLWD5zlEq86YCFNnYjWz8B CtkakG2u9wMh0LlK6mBO+FbWR6I+Ojk= X-Google-Smtp-Source: AKy350by0gXE4UuzxY3uEidsdrklpUONxtgalaeF1qCLjcDNKH5tB6d7RJaA4JkfSfE9Dn5fuDoIbg== X-Received: by 2002:a17:906:2695:b0:920:7827:302 with SMTP id t21-20020a170906269500b0092078270302mr14586040ejc.18.1680447939098; Sun, 02 Apr 2023 08:05:39 -0700 (PDT) Received: from nbbrfq ([2001:871:227:1e16:8ec:e883:b72a:18fd]) by smtp.gmail.com with ESMTPSA id la6-20020a170907780600b009351565d1f5sm3294954ejc.52.2023.04.02.08.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 08:05:38 -0700 (PDT) Received: from b by nbbrfq with local (Exim 4.96) (envelope-from <b@localhost>) id 1pizGz-000Acx-1M; Sun, 02 Apr 2023 17:05:37 +0200 To: gcc-patches@gcc.gnu.org Cc: Bernhard Reutner-Fischer <aldot@gcc.gnu.org> Subject: [PATCH 0/3] Fix mpfr and mpz memory leaks Date: Sun, 2 Apr 2023 17:05:12 +0200 Message-Id: <20230402150515.40826-1-rep.dot.nop@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <nycvar.YFH.7.77.849.2303061129030.18795@jbgna.fhfr.qr> References: <nycvar.YFH.7.77.849.2303061129030.18795@jbgna.fhfr.qr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Bernhard Reutner-Fischer via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series | Fix mpfr and mpz memory leaks | |
Message
Bernhard Reutner-Fischer
April 2, 2023, 3:05 p.m. UTC
From: Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
Hi!
These patches for the go, rust and fortran frontends fix the mpfr and
mpz memory leaks my coccinelle script found.
Bootstrapped and regtested without regressions on x86_64-unknown-linux,
including go,rust,fortran.
Ok for trunk for the fortran bits?
I'd hope that go and rust can apply the respective patches upstream.
Bernhard Reutner-Fischer (3):
go: Fix memory leak in Integer_expression
rust: Fix memory leak in compile_{integer,float}_literal
Fortran: Fix mpz and mpfr memory leaks
gcc/fortran/array.cc | 3 +++
gcc/fortran/expr.cc | 8 ++++----
gcc/fortran/simplify.cc | 7 ++++++-
gcc/go/gofrontend/expressions.cc | 5 +++++
gcc/rust/backend/rust-compile-expr.cc | 7 +++++++
5 files changed, 25 insertions(+), 5 deletions(-)