From 2323e7fa92246d6c5a70f37d140a959f04885015 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 14 Aug 2010 16:24:48 +0000 Subject: [PATCH] CID 1697. The FILE handle was leaked. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38099 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/keymap/Keymap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/keymap/Keymap.cpp b/src/bin/keymap/Keymap.cpp index 08fcd2acd5..f863bae7cf 100644 --- a/src/bin/keymap/Keymap.cpp +++ b/src/bin/keymap/Keymap.cpp @@ -575,6 +575,8 @@ Keymap::SaveAsSource(const char* name) _SaveSourceText(file); #endif + fclose(file); + return B_OK; }