From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 1E68E385481F for ; Wed, 17 Mar 2021 20:29:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1E68E385481F Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lMcnl-0005Jv-8z for libc-help@sourceware.org; Wed, 17 Mar 2021 21:29:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: libc-help@sourceware.org From: Ian Pilcher Subject: Re: Bug or not? printf allocates buffer & never frees it Date: Wed, 17 Mar 2021 15:29:52 -0500 Message-ID: References: <87h7l91xnu.fsf@oldenburg.str.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 In-Reply-To: <87h7l91xnu.fsf@oldenburg.str.redhat.com> Content-Language: en-US X-Spam-Status: No, score=3.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FORGED_MUA_MOZILLA, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_ASCII_DIVIDERS, KAM_DMARC_STATUS, NICE_REPLY_A, NML_ADSP_CUSTOM_MED, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2021 20:30:00 -0000 On 3/17/21 12:45 PM, Florian Weimer via Libc-help wrote: > What happens if you remove the muntrace call? I suspect you see this > leak because you are specifically telling glibc not to log the > deallocation. You are correct. Blindingly obvious in retrospect. Thanks! -- ======================================================================== In Soviet Russia, Google searches you! ========================================================================