KW Warning Fix
Check file pointer before closing. Change-Id: Id9526f6eacf57e282dc0af35d72f571f950b0b0e CRs-Fixed: 2193268
This commit is contained in:
parent
453ea46352
commit
980d403c81
1 changed files with 3 additions and 1 deletions
|
@ -1119,7 +1119,9 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
|
||||||
}
|
}
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
if (conf_fp) {
|
||||||
fclose(conf_fp);
|
fclose(conf_fp);
|
||||||
|
}
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
LOC_LOGE("%s:%d]: ret: %d", __func__, __LINE__, ret);
|
LOC_LOGE("%s:%d]: ret: %d", __func__, __LINE__, ret);
|
||||||
if (child_proc) {
|
if (child_proc) {
|
||||||
|
|
Loading…
Reference in a new issue