Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


more paranoid error checking
[palacios.git] / palacios / src / palacios / vmm_dev_mgr.c
index 976f41d..c75e633 100644 (file)
@@ -129,7 +129,7 @@ int v3_free_vm_devices(struct v3_vm_info * vm) {
     struct vm_device * dev;
     struct vm_device * tmp;
 
-    if (mgr) { 
+    if (mgr && mgr->num_devs > 0) { 
        list_for_each_entry_safe(dev, tmp, &(mgr->dev_list), dev_link) {
            v3_remove_device(dev);
        }