projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: add missing closedir in _get_max_cpuid_from_sysfs()
[lttng-ust.git]
/
src
/
common
/
smp.c
diff --git
a/src/common/smp.c
b/src/common/smp.c
index 8c742028039a10395b099202a741f490bc72fe2d..88d66a40a3c0f049e34c46a290af11b4b5fea454 100644
(file)
--- a/
src/common/smp.c
+++ b/
src/common/smp.c
@@
-73,6
+73,9
@@
int _get_max_cpuid_from_sysfs(const char *path)
}
}
}
}
+ if (closedir(cpudir))
+ PERROR("closedir");
+
/*
* If the max CPU id is out of bound, set it to -1 so it results in a
* CPU num of 0.
/*
* If the max CPU id is out of bound, set it to -1 so it results in a
* CPU num of 0.
This page took
0.024649 seconds
and
5
git commands to generate.