Revision: 7319
Author:   nogu.dev
Date:     Sun Sep 18 23:31:49 2011
Log:      * uim/uim-custom.c
  - (uim_custom_value_internal): Plug leak.
  - (uim_custom_save_group): Ditto.
http://code.google.com/p/uim/source/detail?r=7319

Modified:
 /trunk/uim/uim-custom.c

=======================================
--- /trunk/uim/uim-custom.c     Fri Sep 16 03:38:05 2011
+++ /trunk/uim/uim-custom.c     Sun Sep 18 23:31:49 2011
@@ -914,6 +914,7 @@
     value->as_table = uim_custom_table_get(custom_sym, getter_proc);
     break;
   default:
+    free(value);
     value = NULL;
   }

@@ -1331,6 +1332,9 @@
  error:
   free(tmp_file_path);

+  if (file)
+    fclose(file);
+
   return succeeded;
 }

Reply via email to