From: sunm.lee Date: Fri, 13 May 2016 00:25:05 +0000 (+0900) Subject: runtime-info: fix - close the file pointer X-Git-Tag: accepted/tizen/common/20160513.123451^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=558ef9152648cbfd9ad1328ccae3813b0b8e4862;p=platform%2Fcore%2Fapi%2Fruntime-info.git runtime-info: fix - close the file pointer Close file pointer cpuinfo_fp at runtime_info_get_frequency_cpuinfo() when function returns. Change-Id: Id66f3507d2b40a89e00e216dd951749b36dcd803 Signed-off-by: sunm.lee --- diff --git a/src/runtime_info_system.c b/src/runtime_info_system.c index fe8b10e..2761305 100644 --- a/src/runtime_info_system.c +++ b/src/runtime_info_system.c @@ -354,10 +354,12 @@ int runtime_info_get_frequency_cpuinfo(int core_idx, int *cpu_freq) } *cpu_freq = acc_freq; + fclose(cpuinfo_fp); return RUNTIME_INFO_ERROR_NONE; } ++cur_core; } + fclose(cpuinfo_fp); return RUNTIME_INFO_ERROR_NOT_SUPPORTED; }