Index: output-gazetteer.c
===================================================================
--- output-gazetteer.c  (revision 27287)
+++ output-gazetteer.c  (working copy)
@@ -1020,6 +1020,7 @@
 //   Options->mid->iterate_relations( gazetteer_process_relation );
 
    /* No longer need to access middle layer */
+   Options->mid->commit();
    Options->mid->stop();
 
    /* Stop any active copy */

