Skip to content

Commit

Permalink
Explain memory allocation policy in oid_ops.c
Browse files Browse the repository at this point in the history
  • Loading branch information
greghudson committed Aug 1, 2012
1 parent 69947d9 commit 120408c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/gssapi/generic/oid_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
#include <errno.h>
#include <ctype.h>

/*
* The functions for allocating and releasing individual OIDs use malloc and
* free instead of the gssalloc wrappers, because the mechglue currently mixes
* generic_gss_copy_oid() with hand-freeing of OIDs. We do not need to free
* free OIDs allocated by mechanisms, so this should not be a problem.
*/

OM_uint32
generic_gss_release_oid(OM_uint32 *minor_status, gss_OID *oid)
{
Expand Down

0 comments on commit 120408c

Please sign in to comment.