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.


Added updated sleep/wakeup functionality
[palacios.git] / linux_module / iface-graphics-console.c
index d05510a..ec965fd 100644 (file)
@@ -309,9 +309,16 @@ static int graphics_console_init( void ) {
 
 
 static int graphics_console_deinit( void ) {
+    struct palacios_graphics_console * gc  = NULL;
+    struct palacios_graphics_console * tmp = NULL;
 
-    if (!list_empty(&global_gcons)) { 
-       ERROR("Removing graphics console with open consoles - MEMORY LEAK\n");
+    list_for_each_entry_safe(gc, tmp, &(global_gcons), gcons_node) {
+        list_del(&(gc->gcons_node));
+
+        if (gc->data) 
+            vfree(gc->data);
+
+        palacios_free(gc);
     }
     
     return 0;