mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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@citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
15ee647c86
commit
6d53f40fe1
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||