From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from phicode.de ([46.4.89.174]) by ur; Sat Jan 2 04:55:12 EST 2016 Received: from localhost (localhost [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by phicode.de (Postfix) with ESMTPS id 7B68240040 for <9front@9front.org>; Sat, 2 Jan 2016 10:55:13 +0100 (CET) Date: Sat, 2 Jan 2016 10:55:13 +0100 (CET) From: Julius Schmidt X-X-Sender: aiju@localhost To: 9front@9front.org Subject: strtomp(2) memory leak Message-ID: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: managed realtime framework User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII I think strtomp(..., nil) leaks memory if there is no number to convert. I'm not a fan of ever returning nil. Removing this special case fixes the leak but I'm not sure whether it would break some code that relies on it. aiju