瀏覽代碼

fix memleak

Samuel Thibault 8 年之前
父節點
當前提交
ed7967a2bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sc_hypervisor/src/hypervisor_policies/throughput_lp_policy.c

+ 1 - 1
sc_hypervisor/src/hypervisor_policies/throughput_lp_policy.c

@@ -278,7 +278,7 @@ static void _try_resizing(unsigned *sched_ctxs, int nsched_ctxs , int *workers,
 
 
 		sc_hypervisor_lp_redistribute_resources_in_ctxs(ns, tw->nw, nworkers_per_ctx_rounded, nworkers_per_ctx, sched_ctxs, tw);
-
+		free(tw);
 	}
 }