recovery: fix failure to unmount "/cache"
At load_locale_from_cache() function, LOCALE_FILE must get closed after it is opened and used. Otherwise it causes a failure to unmount "/cache" after load_locale_from_cache() function is called. Change-Id: I9cec0f29a8ec4452c8a6a52e2f3c8ce9930d5372 Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
committed by
Iliyan Malchev
parent
8347cb2d81
commit
6016d08b0c
@@ -798,6 +798,7 @@ load_locale_from_cache() {
|
||||
}
|
||||
buffer[j] = 0;
|
||||
locale = strdup(buffer);
|
||||
check_and_fclose(fp, LOCALE_FILE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user