]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix hdestroy() compliance issue.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Mon, 21 Jul 2014 15:44:59 +0000 (15:44 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Mon, 21 Jul 2014 15:44:59 +0000 (15:44 +0000)
commite19f362e282d58d90bc6ee46eaef5362db8172f8
tree6b6b105ac6caa77faddbd827f6ebb78c977a2217
parent47ccc0c84fb0debeec03ff02730706e7b9c874ac
Fix hdestroy() compliance issue.

The hcreate(3) implementation and related functions we inherited
from NetBSD used to free() the key value, something that is not
supported by the standard implementation.

This would cause a segmentation fault when attempting to run
the examples from the opengroup and linux manpages.  NetBSD
has added non-standard calls to provide the previous
behaviour but hdestroy is not very commonly used so at this
time it seems excessive to bring those to FreeBSD.

Bump the __FreeBSD_version as this is an ABI change.

Reference:
http://bugs.dragonflybsd.org/issues/1398

MFC after: 2 weeks
lib/libc/stdlib/hcreate.c
sys/sys/param.h