Skip to content

Commit 429aa19

Browse files
authored
Merge pull request #246 from intel-innersource/release_resources
Added missed closing of fd
2 parents 867c6c8 + 697c979 commit 429aa19

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)