mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 11:01:19 +00:00
Make hash destructors call internal unref methods to free objects
This commit is contained in:
parent
65ecb4b434
commit
6582d5872d
@ -1,3 +1,9 @@
|
|||||||
|
Mon May 11 16:25:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/datatypes.c: Change hash destructors to call the internal
|
||||||
|
virUnrefXXX methods instead of public virXXXFree methods (Laine
|
||||||
|
Stump)
|
||||||
|
|
||||||
Mon May 11 16:25:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
Mon May 11 16:25:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/lxc_container.c: Fix unused variable warning
|
* src/lxc_container.c: Fix unused variable warning
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
static int
|
static int
|
||||||
virDomainFreeName(virDomainPtr domain, const char *name ATTRIBUTE_UNUSED)
|
virDomainFreeName(virDomainPtr domain, const char *name ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
return (virDomainFree(domain));
|
return (virUnrefDomain(domain));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,7 +63,7 @@ virDomainFreeName(virDomainPtr domain, const char *name ATTRIBUTE_UNUSED)
|
|||||||
static int
|
static int
|
||||||
virNetworkFreeName(virNetworkPtr network, const char *name ATTRIBUTE_UNUSED)
|
virNetworkFreeName(virNetworkPtr network, const char *name ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
return (virNetworkFree(network));
|
return (virUnrefNetwork(network));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,7 +77,7 @@ virNetworkFreeName(virNetworkPtr network, const char *name ATTRIBUTE_UNUSED)
|
|||||||
static int
|
static int
|
||||||
virStoragePoolFreeName(virStoragePoolPtr pool, const char *name ATTRIBUTE_UNUSED)
|
virStoragePoolFreeName(virStoragePoolPtr pool, const char *name ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
return (virStoragePoolFree(pool));
|
return (virUnrefStoragePool(pool));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -91,7 +91,7 @@ virStoragePoolFreeName(virStoragePoolPtr pool, const char *name ATTRIBUTE_UNUSED
|
|||||||
static int
|
static int
|
||||||
virStorageVolFreeName(virStorageVolPtr vol, const char *name ATTRIBUTE_UNUSED)
|
virStorageVolFreeName(virStorageVolPtr vol, const char *name ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
return (virStorageVolFree(vol));
|
return (virUnrefStorageVol(vol));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user