 +		}
 +	}
 +
++	db_error = dbc->c_close (dbc);
++	if (db_error != 0) {
++		g_warning (G_STRLOC ":c_close failed: %s", db_strerror (db_error));
++	}
++
 +	++id;
 +	snprintf (&ret[0], RUNNING_ID_LEN+1, "%0*d", RUNNING_ID_LEN, id);
 +	ret[RUNNING_ID_LEN] = '\0';

 
         string_to_dbt (id, &id_dbt);
 
@@ -1352,6 +1427,55 @@ install_pre_installed_vcards (EBookBacke
 }
 
 static GNOME_Evolution_Addressbook_CallStatus

 
 static void 
 set_revision (EContact *contact)
@@ -182,7 +257,12 @@ insert_contact (EBookBackendFile *bf,
         g_assert (vcard_req);
         g_assert (contact);
 
