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:
Ian Campbell committed 2016-02-11 15:12:06 +00:00
1 parent 15ee647c86
commit 6d53f40fe1
1 file changed
+1
+1
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.