* src/storage_driver.c: fix a segfault, patch by Miloslav TrmaC

daniel
This commit is contained in:
Daniel Veillard 2008-12-15 15:34:30 +00:00
parent 43b897c17a
commit e4471a7ac7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Dec 15 16:33:25 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/storage_driver.c: fix a segfault, patch by Miloslav TrmaC
Mon Dec 15 10:59:19 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
* src/domain_conf.c: Unlock domain object after fetching

View File

@ -1235,9 +1235,9 @@ storageVolumeCreateXML(virStoragePoolPtr obj,
}
pool->volumes.objs[pool->volumes.count++] = vol;
vol = NULL;
ret = virGetStorageVol(obj->conn, pool->def->name, vol->name, vol->key);
vol = NULL;
cleanup:
virStorageVolDefFree(vol);