Close the file handle if it is not the cpu frequency driver.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31490 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2009-07-09 18:43:14 +00:00
parent 4ce5127b79
commit 29f659f283
@@ -212,6 +212,8 @@ CPUFreqDriverInterface::_FindSpeedStepDriver(const char* path)
sizeof(uint32));
if (ret == B_OK && magicId == kMagicFreqID)
return B_OK;
else
close(fDriverHandler);
}
}