[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xenmon: close qos_fd when finished with it in alloc_qos_data
commit 6d53f40fe19bacaac0cf0786e2fb6df4941426f7 Author: Ian Campbell <ian.campbell@xxxxxxxxxx> AuthorDate: Wed Feb 10 16:26:24 2016 +0000 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Thu Feb 11 15:12:06 2016 +0000 xenmon: close qos_fd when finished with it in alloc_qos_data Otherwise the fd is leaked. NB the mmap'd memory in the global cpu_qos_data[n] is not affected by closing the underlying fd. Compile tested only. CID: 1055930 Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/xenmon/xenbaked.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xenmon/xenbaked.c b/tools/xenmon/xenbaked.c index eacacb0..782f0c1 100644 --- a/tools/xenmon/xenbaked.c +++ b/tools/xenmon/xenbaked.c @@ -689,6 +689,7 @@ static void alloc_qos_data(int ncpu) cpu_qos_data[n] = new_qos; } free(dummy); + close(qos_fd); new_qos = NULL; } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |