threads and contexts and allocations and frees

Russ Allbery rra at
Wed Apr 17 16:49:53 EDT 2013

Benjamin Kaduk <kaduk at MIT.EDU> writes:

> I believe that with the current implementation, using a different
> krb5_context for freeing a structure than was used to allocate it should
> work just fine.  I don't think we make a guarantee anywhere that this
> will always work, though (but it seems unlikely that we would break this
> ability).

IIRC, this sort of thing can cause problems on Windows due to the way that
the allocators work (although possibly doesn't at the moment depending on
how the code is structured).

Russ Allbery (rra at             <>

More information about the krbdev mailing list