s4:auth/credentials: use krb5_data_free()
[ira/wip.git] / source4 / auth / kerberos / clikrb5.c
index cf87d13cf2a53ca43a259f0d3ca7bc0af74231f4..68e7eb90cc19540198c3c1405ca17b80c9f0926d 100644 (file)
 
  void kerberos_free_data_contents(krb5_context context, krb5_data *pdata)
 {
-#if defined(HAVE_KRB5_FREE_DATA_CONTENTS)
        if (pdata->data) {
-               krb5_free_data_contents(context, pdata);
+               krb5_data_free(pdata);
        }
-#else
-       SAFE_FREE(pdata->data);
-#endif
 }
 
  krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry)