xen/sched: fix memory leak in credit2
PATCH 1/1 xen/sched: fix memory leak in credit2
csched2_deinit() is leaking the run-queue memory.
Signed-off-by Juergen Gross <[email protected]>
--- xen/common/sched_credit2.c | 2 ++ 1 file changed, 2 insertions(+)
xen/common/sched_credit2.c +2 -0
@@ -4070,6 +4070,8 @@ csched2_deinit(struct scheduler *ops) prv =csched2_priv (ops); ops->sched_data =NULL ; +if ( prv ) +xfree (prv->rqd);xfree (prv); }
Signature · 7 lines
2.16.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Juergen Gross
csched2_deinit()is leaking the run-queue memory.Signed-off-by Juergen Gross <[email protected]>
Acked-by Dario Faggioli <[email protected]>
Thanks and Regards
Signature · 6 lines
Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <<This happens because _I_ choose it to happen!>> (Raistlin Majere)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel