X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsmp.c;h=88d66a40a3c0f049e34c46a290af11b4b5fea454;hb=85f8af7b80f5d52ab099e7f73d3ac8f59c6bb1e9;hp=8c742028039a10395b099202a741f490bc72fe2d;hpb=fb0f6ca9385e1813311cfd917c130b40bec04970;p=lttng-ust.git diff --git a/src/common/smp.c b/src/common/smp.c index 8c742028..88d66a40 100644 --- 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.