Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4250384F56 for ; Sun, 10 Dec 2023 13:09:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id cr3BuAN60WQN for ; Sun, 10 Dec 2023 13:09:58 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id CFF5384CFD for ; Sun, 10 Dec 2023 13:09:58 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id CD929FA42; Sun, 10 Dec 2023 13:09:58 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 10 Dec 2023 13:09:58 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-9] src/lib/libc/net To: source-changes@NetBSD.org Approved: for-source-only Reply-To: martin@netbsd.org X-Mailer: log_accum Message-Id: <20231210130958.CD929FA42@cvs.NetBSD.org> Module Name: src Committed By: martin Date: Sun Dec 10 13:09:58 UTC 2023 Modified Files: src/lib/libc/net [netbsd-9]: sethostent.c Log Message: Pull up following revision(s) (requested by kre in ticket #1776): lib/libc/net/sethostent.c: revision 1.21 Fix a couple of (not very likely) memory leaks, reported by enh@google.com who attributed them: the malloc one was reported to Android (as https://android-review.googlesource.com/c/platform/bionic/+/2856549) by wuhaitao3 ; Chris Ferris then spotted the goto nospc one. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.20.28.1 src/lib/libc/net/sethostent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.