CpuLinux file handle leak.

BUG=crbug.com/110165

Review URL: http://webrtc-codereview.appspot.com/353001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1429 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2012-01-16 09:31:39 +00:00
parent f75901fa4c
commit 67cdc22e7e

View File

@ -179,6 +179,7 @@ int CpuLinux::GetNumCores()
char line[100]; char line[100];
if (!fgets(line, 100, fp)) if (!fgets(line, 100, fp))
{ {
fclose(fp);
return -1; return -1;
} }
int numCores = -1; int numCores = -1;