projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b08072
)
xen/sched: fix memory leak in credit2
author
Juergen Gross
<jgross@suse.com>
Wed, 7 Aug 2019 11:04:49 +0000
(13:04 +0200)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Wed, 7 Aug 2019 16:21:14 +0000
(17:21 +0100)
csched2_deinit() is leaking the run-queue memory.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched_credit2.c
patch
|
blob
|
history
diff --git
a/xen/common/sched_credit2.c
b/xen/common/sched_credit2.c
index 6fff210ca6e0c010c5d37d526834f181f78d9894..6b77da747669e893e3ddaf3895357d00dcc841ef 100644
(file)
--- a/
xen/common/sched_credit2.c
+++ b/
xen/common/sched_credit2.c
@@
-4070,6
+4070,8
@@
csched2_deinit(struct scheduler *ops)
prv = csched2_priv(ops);
ops->sched_data = NULL;
+ if ( prv )
+ xfree(prv->rqd);
xfree(prv);
}