git: hcreate(3): Stop freeing key values

Aaron LI aly at crater.dragonflybsd.org
Sun Oct 4 06:11:51 PDT 2026


commit f86ce3f50f3e8e02b8201df0509d3d8064c573d2
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Oct 4 20:59:28 2026 +0800

    hcreate(3): Stop freeing key values
    
    POSIX leaves ownership of ENTRY.key with the caller. NetBSD and FreeBSD
    both stopped freeing key values in July 2014, and OpenBSD made the
    change in August 2026.
    
    Update the function description in the man page according to OpenBSD's;
    adjust the example in the man page according to the POSIX spec.
    
    OpenBSD: https://github.com/openbsd/src/commit/99858244924d27f541bdf37cb5565ee9525d7753
    POSIX: https://pubs.opengroup.org/onlinepubs/9799919799/functions/hcreate.html
    Bug: https://bugs.dragonflybsd.org/issues/1398

Summary of changes:
 lib/libc/stdlib/hcreate.3 | 113 +++++++++++++++++++++-------------------------
 lib/libc/stdlib/hcreate.c |   1 -
 2 files changed, 52 insertions(+), 62 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f86ce3f50f3e8e02b8201df0509d3d8064c573d2


-- 
DragonFly BSD source repository


More information about the Commits mailing list