projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b91bec
)
xen/sched: fix memory leak in credit2
author
Juergen Gross
<jgross@suse.com>
Mon, 23 Sep 2019 12:35:40 +0000
(14:35 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Mon, 23 Sep 2019 12:35:40 +0000
(14:35 +0200)
csched2_deinit() is leaking the run-queue memory.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Dario Faggioli <dfaggioli@suse.com>
master commit:
70f9dff51ee873cf65246d3e95b27e2e92ca137b
master date: 2019-08-07 17:21:14 +0100
xen/common/sched_credit2.c
patch
|
blob
|
history
diff --git
a/xen/common/sched_credit2.c
b/xen/common/sched_credit2.c
index c6f1c26dba976e7eb8b6292065ff26f8fd56086d..d532972af0708f83a19b3ac5618932e34320d6bd 100644
(file)
--- a/
xen/common/sched_credit2.c
+++ b/
xen/common/sched_credit2.c
@@
-4075,6
+4075,8
@@
csched2_deinit(struct scheduler *ops)
prv = csched2_priv(ops);
ops->sched_data = NULL;
+ if ( prv )
+ xfree(prv->rqd);
xfree(prv);
}