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 5729 invoked from network); 21 Jan 2023 00:19:02 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2023 00:19:02 -0000 Received: from tilde.team ([198.50.210.248]) by 9front; Fri Jan 20 19:17:32 -0500 2023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.team; s=mail; t=1674260250; bh=UDWDUWLttgko5jXRTda0ROG/tFuA6ueMGHjs5WbFlx4=; h=Date:From:To:Subject:From; b=Ct/+ZbgVFvtbvAJz5wZQfjwNIIDLWnzeIHafjs+SsfufJ/kFFgV48ZUQcS2mddLxf 308R11jG3ZsXDLnoAemTO9Dmo5rqBJWWtqU9Yyvn8JTBW9h+etAqpTbYOqml48mQTv IPxfyiuI7cTTAlLMuoGwnkTnnKxZoIatbC6ZCa/E= Received: from quark.home.arpa (unknown [IPv6:2607:fb91:131e:d052:9c9f:3c78:4292:6112]) by tilde.team (Postfix) with ESMTPSA id E6BDD4C0A7B for <9front@9front.org>; Sat, 21 Jan 2023 00:17:29 +0000 (UTC) Received: from localhost (quark.home.arpa [local]) by quark.home.arpa (OpenSMTPD) with ESMTPA id f749c931 for <9front@9front.org>; Fri, 20 Jan 2023 19:17:26 -0500 (EST) Date: Fri, 20 Jan 2023 19:17:26 -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: social extensible GPU-oriented deep-learning-aware pipelining-based generator Subject: [9front] lock: Fix some memory leaks Reply-To: 9front@9front.org Precedence: bulk diff bb36ba0617b5aa8263ea9b5ece8c1a5249fedc86 uncommitted --- a/sys/src/cmd/lock.c +++ b/sys/src/cmd/lock.c @@ -35,6 +35,7 @@ } if (w->pid == pid) return w; + free(w); } } @@ -141,7 +142,8 @@ error("wait"); postnote(PNPROC, lckpid, "die"); - waitfor(lckpid); + free(waitfor(lckpid)); + if(w->msg[0]){ p = utfrune(w->msg, ':'); if(p && p[1])