use correct free()
authorLuke Howard <lukeh@padl.com>
Sun, 12 Sep 2010 14:59:19 +0000 (16:59 +0200)
committerLuke Howard <lukeh@padl.com>
Sun, 12 Sep 2010 14:59:19 +0000 (16:59 +0200)
mech_eap/util_mech.c

index efeca2d..7560575 100644 (file)
@@ -136,7 +136,7 @@ gssEapEnctypeToOid(OM_uint32 *minor,
     oid->elements = GSSEAP_MALLOC(GSS_EAP_MECHANISM->length + 1);
     if (oid->elements == NULL) {
         *minor = ENOMEM;
-        free(oid);
+        GSSEAP_FREE(oid);
         return GSS_S_FAILURE;
     }
 
@@ -149,8 +149,8 @@ gssEapEnctypeToOid(OM_uint32 *minor,
         gssEapInternalizeOid(oid, pOid);
         *pOid = oid;
     } else {
-        free(oid->elements);
-        free(oid);
+        GSSEAP_FREE(oid->elements);
+        GSSEAP_FREE(oid);
     }
 
     return major;