/*
 * call-seq:
 *   close
 *
 * Free up all memory associated with this object.  After this is called, no more methods may be called against this object.
 */
static VALUE Krb5_close(VALUE self)
{
  struct ruby_krb5 *kerb;

  Data_Get_Struct(self, struct ruby_krb5, kerb);
  if (kerb) {
    kerb_free(kerb);
    DATA_PTR(self) = NULL;
  }

  return Qnil;
}