]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Explain memory allocation policy in oid_ops.c
authorGreg Hudson <ghudson@mit.edu>
Wed, 1 Aug 2012 18:43:43 +0000 (14:43 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 1 Aug 2012 18:44:35 +0000 (14:44 -0400)
src/lib/gssapi/generic/oid_ops.c

index 1159efeb727897969069f42f99fa535093a3ce4e..ff5096d604496513b248845fb690e6933b3c0a9f 100644 (file)
 #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)
 {