if(!fscanf(cpuinfo_fp, "%d-%d", &buf, &result)) {
_E("IO_ERROR(0x%08x) : there is no information in the system file",
RUNTIME_INFO_ERROR_IO_ERROR);
+ fclose(cpuinfo_fp);
return RUNTIME_INFO_ERROR_IO_ERROR;
}
*num_core = result + 1;
+ fclose(cpuinfo_fp);
return RUNTIME_INFO_ERROR_NONE;
}
if(!fscanf(cpuinfo_fp, "%d", &result)) {
_E("IO_ERROR(0x%08x) : there is no information in the system file",
RUNTIME_INFO_ERROR_IO_ERROR);
+ fclose(cpuinfo_fp);
return RUNTIME_INFO_ERROR_IO_ERROR;
}
*cpu_freq = result / 1000;
+ fclose(cpuinfo_fp);
return RUNTIME_INFO_ERROR_NONE;
}
if(!fscanf(cpuinfo_fp, "%d", &result)) {
_E("IO_ERROR(0x%08x) : there is no information in the system file",
RUNTIME_INFO_ERROR_IO_ERROR);
+ fclose(cpuinfo_fp);
return RUNTIME_INFO_ERROR_IO_ERROR;
}
*cpu_freq = result / 1000;
+ fclose(cpuinfo_fp);
return RUNTIME_INFO_ERROR_NONE;
}