From 6016d08b0c3b682f1f7000b42a9ea4b6b6d74f22 Mon Sep 17 00:00:00 2001 From: Devin Kim Date: Mon, 8 Oct 2012 09:47:37 -0700 Subject: 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 --- recovery.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/recovery.cpp b/recovery.cpp index 5c1e3cd21..594774f5a 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -798,6 +798,7 @@ load_locale_from_cache() { } buffer[j] = 0; locale = strdup(buffer); + check_and_fclose(fp, LOCALE_FILE); } } -- cgit v1.2.3