remove dandling domain/net/conn pointers from error data

* src/hash.c src/internal.h src/virterror.c: remove dandling
  domain/net/conn pointers from error data when released.
* src/lxc_driver.c: fix a NULL/0 return error mismatch
Daniel
This commit is contained in:
Daniel Veillard
2008-03-31 14:38:12 +00:00
parent be03daaab2
commit c7d7aa1cd1
5 changed files with 28 additions and 9 deletions

View File

@@ -420,7 +420,7 @@ static void lxcFreeDriver(lxc_driver_t *driver)
static int lxcShutdown(void)
{
if (lxc_driver == NULL)
return(NULL);
return(-1);
lxcFreeVMs(lxc_driver->vms);
lxc_driver->vms = NULL;
lxcFreeDriver(lxc_driver);