emulator_option: fix resource leak. 27/29227/1
authorKitae Kim <kt920.kim@samsung.com>
Thu, 23 Oct 2014 02:09:57 +0000 (11:09 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Thu, 23 Oct 2014 03:33:52 +0000 (12:33 +0900)
it did not close file handle when returning value.

Change-Id: I6d0defdfa8ca1fb5e477f5b8b1f44ad82124ba5b
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
tizen/src/emulator_options.c

index d683dbd..28f09e7 100644 (file)
@@ -296,6 +296,7 @@ bool load_profile_default(const char * const conf, const char * const profile)
         }
     }
 
+    fclose(file);
     return true;
 }