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

Matthew Dillon dillon at apollo.backplane.com
Mon Jul 6 09:40:05 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 i=
:t
:> expects the user to always have malloc()'ed rather than used static alloc=
:ation
:> 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.
:
:Cheers,
:Stathis

    Sure.  Does anyone even use those functions any more?  They
    aren't threadable.

						-Matt






More information about the Bugs mailing list