Skip to content

Commit 697c979

Browse files
committed
Added missed closing of fd
1 parent 867c6c8 commit 697c979

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cpucounters.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ void pcm_cpuid_bsd(int leaf, PCM_CPUID_INFO& info, int core)
329329
{
330330
info.array[i] = cpuid_args_freebsd.data[i];
331331
}
332+
::close(fd);
332333
}
333334
#endif
334335

0 commit comments

Comments
 (0)