Replace instances of krb5_xfree..
authorRichard Basch <probe@mit.edu>
Wed, 19 Feb 1997 01:51:01 +0000 (01:51 +0000)
committerRichard Basch <probe@mit.edu>
Wed, 19 Feb 1997 01:51:01 +0000 (01:51 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9910 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/export_sec_context.c
src/lib/gssapi/krb5/init_sec_context.c

index fba8a684ba3fbd243be02d374619376befd1caae..07a7659ee97e0c8f77e6bdfc9ac2b6e5465aca68 100644 (file)
@@ -90,7 +90,7 @@ krb5_gss_export_sec_context(minor_status, context_handle, interprocess_token)
 error_out:
     if (obuffer && bufsize) {
            memset(obuffer, 0, bufsize);
-           krb5_xfree(obuffer);
+           xfree(obuffer);
     }
     if (*minor_status == 0) 
            *minor_status = (OM_uint32) kret;
index 3b8935fffb4cb31c1663da81b456b4f40173f877..2df91205fa6ca8069a12cb1423dfa0ab19d2b4f7 100644 (file)
@@ -97,7 +97,7 @@ make_ap_req(context, auth_context, cred, server, endtime, chan_bindings,
            checksum_data.length = 24;
        } else {
            if (credmsg.length+28 > KRB5_INT16_MAX) {
-               krb5_xfree(credmsg.data);
+               krb5_free_data_contents(context, &credmsg);
                return(KRB5KRB_ERR_FIELD_TOOLONG);
            }
 
@@ -113,7 +113,7 @@ make_ap_req(context, auth_context, cred, server, endtime, chan_bindings,
     if ((checksum_data.data =
         (char *) xmalloc(checksum_data.length)) == NULL) {
        if (credmsg.data)
-           krb5_xfree(credmsg.data);
+           krb5_free_data_contents(context, &credmsg);
        return(ENOMEM);
     }
 
@@ -132,8 +132,7 @@ make_ap_req(context, auth_context, cred, server, endtime, chan_bindings,
        TWRITE_STR(ptr, (unsigned char *) credmsg.data, credmsg.length);
 
        /* free credmsg data */
-
-       krb5_xfree(credmsg.data);
+       krb5_free_data_contents(context, &credmsg);
     }
 
     /* fill in the necessary fields in creds */