X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_scheduler.c;h=07600bf1a507c8a8e337503de2c071500cb2963f;hb=4d1d8fadad33de7d3ebce2083d9782048f78b44e;hp=c214d63089cad9514f1d92a172315f869961d648;hpb=aeb2dd5e0468a94dd992a21d9e6e8ac5b925d2e6;p=palacios.git diff --git a/palacios/src/palacios/vmm_scheduler.c b/palacios/src/palacios/vmm_scheduler.c index c214d63..07600bf 100644 --- a/palacios/src/palacios/vmm_scheduler.c +++ b/palacios/src/palacios/vmm_scheduler.c @@ -59,7 +59,9 @@ int V3_init_scheduling() { int V3_deinit_scheduling() { destroy_host_scheduler(); - v3_free_htable(master_scheduler_table,1,1); + // important not to remove any keys or values since we don't know + // if they are malloced or other + v3_free_htable(master_scheduler_table,0,0); return 0; } @@ -331,5 +333,6 @@ static int create_host_scheduler() static int destroy_host_scheduler() { v3_unregister_scheduler(host_sched_impl.name); + // no deletion of this since it's a pointer to a global var return 0; }