[issue1398] hdestroy(3) restricts hash key to point to malloc'ed space

Stathis Kamperis (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Mon Jul 13 12:32:52 PDT 2009


Stathis Kamperis <ekamperi at gmail.com> added the comment:

>> hdestroy(3) frees the memory pointed to by the hash key. In other words it
>> expects the user to always have malloc()'ed rather than used static allocation
>> for the hash key. This doesn't apply to the data associated with the key.

> Any thoughts about this one ?
> If no objections are raised, I'm going to push it in ~1 week.

I'll tweak the example in the man page, add a few words in the text and commit it.

Reviewed by dillon@ and hasso at .

Cheers,
Stathis

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1398>
_____________________________________________________





More information about the Bugs mailing list