From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 20731 invoked from network); 14 Nov 2022 18:11:04 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2022 18:11:04 -0000 Received: from tilde.team ([198.50.210.248]) by 9front; Mon Nov 14 13:09:34 -0500 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.team; s=mail; t=1668449371; bh=q4sJ86XWrYk6LPpt+T7HKW2xnacwSrq1Dl+JBLvkIv0=; h=Date:From:To:Subject:From; b=sYrA5QQZps6Wty5PiCAkjbZu2+WfPn3P859Nn1W+vTDTEea+h4gVFpJXrJC5K1tue qFalRRnEOq+70vIPKZeMziNA1L5j6iEUc6g+IiVbfs1lz1DRSiocgsETthSI2NZkBa bxNImdMJ/BYufRBwyP5Aq7M2Akfkbt/rTMxDAtXA= Received: from quark.home.arpa (unknown [IPv6:2607:fb90:938e:9f99:fd68:98b5:eb4b:d6f3]) by tilde.team (Postfix) with ESMTPSA id F2D6E4C0C7F for <9front@9front.org>; Mon, 14 Nov 2022 18:09:30 +0000 (UTC) Received: from localhost (quark.home.arpa [local]) by quark.home.arpa (OpenSMTPD) with ESMTPA id 49cba343 for <9front@9front.org>; Mon, 14 Nov 2022 13:09:29 -0500 (EST) Date: Mon, 14 Nov 2022 13:09:29 -0500 From: Josiah Frentsos To: 9front@9front.org Message-ID: Mail-Followup-To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: agile managed ACPI replication-aware software Subject: [9front] auth_getkey: Fix a memory leak Reply-To: 9front@9front.org Precedence: bulk diff 0e9c5f30eabbf213023658efb863dbaf6a608a51 uncommitted --- a/sys/src/libauth/auth_getkey.c +++ b/sys/src/libauth/auth_getkey.c @@ -25,6 +25,7 @@ werrstr("auth_getkey: /factotum may be bad: didn't get key %s", params); return -1; } + free(d); switch(pid = fork()){ case -1: werrstr("can't fork for %s: %r", name);