X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_io.c;h=65dc6cf82ec941232fdc4c18e990425c7b3ab906;hb=b35cb9f7d22a06d849820c8d4487c66f74ec42e2;hp=e3820b900aa792ca3bfcb76d947fbb3317589cce;hpb=a6865d183eedbdf3e5510e4be89dcb5ce51b5953;p=palacios.git diff --git a/palacios/src/palacios/vmm_io.c b/palacios/src/palacios/vmm_io.c index e3820b9..65dc6cf 100644 --- a/palacios/src/palacios/vmm_io.c +++ b/palacios/src/palacios/vmm_io.c @@ -142,6 +142,8 @@ int v3_unhook_io_port(struct guest_info * info, uint_t port) { v3_rb_erase(&(hook->tree_node), &(info->io_map)); + V3_Free(hook); + return 0; } @@ -154,7 +156,7 @@ void v3_print_io_map(struct guest_info * info) { struct v3_io_hook * tmp_hook = NULL; struct rb_node * node = v3_rb_first(&(info->io_map)); - PrintDebug("VMM IO Map (Entries=%d)\n", io_map->num_ports); + PrintDebug("VMM IO Map\n"); do { tmp_hook = rb_entry(node, struct v3_io_hook, tree_node);