• Daniel P. Berrange's avatar
    Only set ptr to nil for Connect object when free'ing · bd9dd147
    Daniel P. Berrange authored
    The virXXXXFree() methods do not in fact return the remaining
    reference count for the object - they always return 0. So we
    cannot set 'ptr' to nil when calling Free() on a Go level object.
    
    The virConnectClose() method, however, is an exception as it
    returns 1 if references remain, 0 if no references remain.
    So we should be setting 'ptr' to nil for the Connect object.
    Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
    bd9dd147
Name
Last commit
Last update
vagrant Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
FAQ.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
api_test.go Loading commit data...
callbacks.go Loading commit data...
callbacks_cfuncs.go Loading commit data...
callbacks_cfuncs.h Loading commit data...
connect.go Loading commit data...
connect_cfuncs.go Loading commit data...
connect_cfuncs.h Loading commit data...
connect_compat.go Loading commit data...
connect_compat.h Loading commit data...
connect_test.go Loading commit data...
doc.go Loading commit data...
domain.go Loading commit data...
domain_compat.go Loading commit data...
domain_compat.h Loading commit data...
domain_events.go Loading commit data...
domain_events_cfuncs.go Loading commit data...
domain_events_cfuncs.h Loading commit data...
domain_events_test.go Loading commit data...
domain_snapshot.go Loading commit data...
domain_test.go Loading commit data...
error.go Loading commit data...
error_compat.h Loading commit data...
error_test.go Loading commit data...
events.go Loading commit data...
events_cfuncs.go Loading commit data...
events_cfuncs.h Loading commit data...
integration_test.go Loading commit data...
interface.go Loading commit data...
interface_test.go Loading commit data...
libvirtd.conf Loading commit data...
network.go Loading commit data...
network_compat.go Loading commit data...
network_compat.h Loading commit data...
network_events.go Loading commit data...
network_events_cfuncs.go Loading commit data...
network_events_cfuncs.h Loading commit data...
network_events_test.go Loading commit data...
network_test.go Loading commit data...
node_device.go Loading commit data...
node_device_compat.go Loading commit data...
node_device_compat.h Loading commit data...
node_device_events.go Loading commit data...
node_device_events_cfuncs.go Loading commit data...
node_device_events_cfuncs.h Loading commit data...
node_device_events_test.go Loading commit data...
nwfilter.go Loading commit data...
secret.go Loading commit data...
secret_compat.go Loading commit data...
secret_compat.h Loading commit data...
secret_events.go Loading commit data...
secret_events_cfuncs.go Loading commit data...
secret_events_cfuncs.h Loading commit data...
storage_pool.go Loading commit data...
storage_pool_compat.go Loading commit data...
storage_pool_compat.h Loading commit data...
storage_pool_events.go Loading commit data...
storage_pool_events_cfuncs.go Loading commit data...
storage_pool_events_cfuncs.h Loading commit data...
storage_pool_events_test.go Loading commit data...
storage_pool_test.go Loading commit data...
storage_volume.go Loading commit data...
storage_volume_compat.go Loading commit data...
storage_volume_compat.h Loading commit data...
storage_volume_test.go Loading commit data...
stream.go Loading commit data...
stream_cfuncs.go Loading commit data...
stream_cfuncs.h Loading commit data...
typedparams.go Loading commit data...