From nobody Wed Jun 10 12:36:25 2026 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gb4yf4XJ8z6g4bB for ; Wed, 10 Jun 2026 12:36:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gb4yf1gCcz43gK for ; Wed, 10 Jun 2026 12:36:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=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=N8XRM/b/tr60EDYFT90ym2gHuim6SeqNkAlH0XkZhhc=; b=N2QFq5jOgLXTw4ODglYEuudZDdPKz/xksfD5BV8fPTOZslBfUHd5iPL8QVW6qDP/0IXWU6 9UteMT9Bpg162dS49TUnT2sPbsbGIkew1EWvR4ZWAAxoS6L5Dp7Erq6nS+sVmFyOzUsjvR 89HpX8nulNSgSbTy98USYSI+dKpqpVdT+dOrPnb1OcpGnFGF6Ub7dohILT2+vdA+VuURWA kdYvn4GKsfnsbRrWjerndH76bYvYiaQkTx+RHfXCPZQFuvpypETnFplF1SIeyFXuCOX8kF mXizW1f2tUJ9u4swnHiIVBTr2yVXzCcXWn7vLTpwhg060TtzowEvE2FjrABM1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781094986; a=rsa-sha256; cv=none; b=qjoQzREYWqxaRgYdCIo3bFHgCeovJ/tCz82qGsMXhdAbMYW9N4h0A8nVa+35T1pIKKfnxD 1xYumkKjFQZAwTP6PIZhIfWWdcCpaHng7G89v/mwM1ewsc9aaNyDMvDl3/aVtfdSuM/Rk3 inhkWpZbYspW3NYzNT0gAvK70otwh0iBnp/xfbhYDInrQcc7VZxQYc/dJVaRTCi947ULGo ouzp/LAyYYoir1qI3C+aXNoVxCAQ4wzFl67RZDYpRjsJz4UnA6o/b0effLbnEBry8T3KlW HLwAGO63buQM4mFdZQ8yzK2GFFEUI/8m+NHiB+6D24vbKPyfNDG+BVC56wPy0w== 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=N8XRM/b/tr60EDYFT90ym2gHuim6SeqNkAlH0XkZhhc=; b=KsrNWCzEjMsNgK+T5mJOBgT110M8Xf9v3hoavMc23MWtv3DhvdvXCXv7XaKAtkPRBY/pKh Jl5bdKgx658S6Gwuamxrcz+MrEbnz8jC1TqaDIViXCHmCFfoj4YpS+OhNDC/zlO2Ml3NFp EbzErxRA1IRvRWPrfw+vcnYXVGT1sUN4+n9FU4h4vQiuf+U0qHnpNmmw5tba8daObuVoYW IgfgCwzEWR7yy/5Qx0M/TFCtODu7XlewomWbNBMJGAKS3xr7qmBbVwrx1U5yZXpYv2D5UI IryYxH1QNMz5c6rgQhUiC4I/UQH/2bVeKTpqe/E45QNNbkI3dX9HGCDP4/AffA== 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 4gb4yf1CKmz1KY0 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 65ACaQDX081829 for ; Wed, 10 Jun 2026 12:36:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65ACaQk7081828 for doc@FreeBSD.org; Wed, 10 Jun 2026 12:36:26 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: doc@FreeBSD.org Subject: [Bug 291240] Mistake in hcreate(3) manpage Date: Wed, 10 Jun 2026 12:36:25 +0000 X-Bugzilla-Reason: CC 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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@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 on the CC list for the bug.=