vGZyOndDnWJxgrThMfqSiBAi8LcS6HF+r3eP3Jklm/tmlIiIDyqlFit ic1mYOrIOtypdZWooJPr0VAdbdHFvzSv502u0DXeOfvHgWs6Cyi24O27Lq9k62US7gN+i+ 2JPJsFu1MSs+IbeY9CGSNICmiBv1dWiSMRgVR1aK2c3ICvZ372rf+9hjsAny3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781094986; a=rsa-sha256; cv=none; b=r4GFfzp6o8dQ68Qwqilz7VXsSqqKH3HsQnGHMn81VHdHb5nahHHbZgSzsolPUoaElMnuf6 iy3uW8iYT5zwYagWXMLE8Y71O36zvc4ZtO0hmOzSeLazj10x1vvpFz5uDW+4Q9eFyORjuM KjQsO3PWz/ApGBSmZ1npczH9D+sR9b9MFU12QuBMxqiuwc7104Bd/23pzc9xKEpifFgcyy EcfcLVjrr+Iu79ET+thCikAoeI6FAgDf0HtJsQQj5ZNcmqyhYAkVTmKwErcBef0U7GSkg4 H7ebwymbNqmPi4NiFySOli94013CJMsnWR256ONrskJFlZ7rYywSBcqwwefEYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781094986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=knF/XW/FsBEirKZ6hzOkZ5d5eOrJ1+pkielp7ZYHfls=; b=m9W5SNuld8YGwJ3veOORobQSUEZEjXU0X0gkfJg2W5C3TtED+heUUEEkqpTAoYLYz77JhR 5E6kwdzVYAmsFZ2k7yS32T+TYCZx+awhNis7dehPcEU2FBJBLoCvupynnsdNaBkZ0eMVRc 0oVSdp99/wGUZKVJ0l+lriQDd6YvdXUbPOfk/TlKbi5M3IaaWG+9O+6ctiNPlGVBU+Ih3m sxPUaKJ06YTGWSG1WQsZGpkZmHkrbXxBIrjpWaM2nKG5w9FO1VvJetLSTYtklIBg6RHou2 lqqj25CWYRUeIO86gyn5UVuh/Tvi6foZIl+kRTxxZyO7823icmosrnV3aLW92w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4gb4yf0Bqfz1KsP for ; Wed, 10 Jun 2026 12:36:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 65ACaP5I081820 for ; Wed, 10 Jun 2026 12:36:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65ACaPcr081819 for bugs@FreeBSD.org; Wed, 10 Jun 2026 12:36:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 291240] Mistake in hcreate(3) manpage Date: Wed, 10 Jun 2026 12:36:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291240 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dab8ceaaa86baa077fcdc020a0c05ccf88= fcd54d1 commit ab8ceaaa86baa077fcdc020a0c05ccf88fcd54d1 Author: Kit Dallege AuthorDate: 2026-03-27 01:57:10 +0000 Commit: Warner Losh CommitDate: 2026-06-10 12:35:05 +0000 hcreate(3): fix incorrect claim that hdestroy frees keys The man page incorrectly stated that hdestroy() calls free(3) for each comparison key. The implementation (hdestroy_r.c) only frees the internal table structure, not the user-provided keys or data. This matches POSIX, which says hdestroy "shall dispose of the search table" without mentioning key deallocation. Update the description to clarify that the caller is responsible for freeing any memory associated with table entries. PR: 291240 Signed-off-by: Kit Dallege Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2095 lib/libc/stdlib/hcreate.3 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=