Class: Keycloak_FFI::KeycloakClient

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/libkeycloak.rb

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



62
63
64
65
66
67
# File 'lib/libkeycloak.rb', line 62

def self.release ptr
  unless ptr.nil?
    Keycloak_FFI.keycloak_destroy_client(ptr)
    FFI::LibC.free(ptr)
  end
end