fix leak
diff --git a/Makefile b/Makefile
index d325f7f..f3b90f1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 ERL=$(shell couch-config --erl-bin)
 ERLANG_VERSION=$(shell couch-config --erlang-version)
 COUCHDB_VERSION=$(shell couch-config --couch-version | sed 's/\+.*//')
-VERSION=1.0.0
+VERSION=1.0.1
 PLUGIN_DIRS=ebin priv
 PLUGIN_VERSION_SLUG=$(NAME)-$(VERSION)-$(ERLANG_VERSION)-$(COUCHDB_VERSION)
 PLUGIN_DIST=$(PLUGIN_VERSION_SLUG)
diff --git a/src/couchperuser.app.src b/src/couchperuser.app.src
index b72b7b1..0702b68 100644
--- a/src/couchperuser.app.src
+++ b/src/couchperuser.app.src
@@ -1,7 +1,7 @@
 %% -*- mode: erlang -*-
 {application, couchperuser, [
     {description, "couchperuser - maintains per-user databases in CouchDB"},
-    {vsn, "1.0.0"},
+    {vsn, "1.0.1"},
     {modules, []},
     {registered, [couchperuser]},
     {applications, [kernel, stdlib]},
diff --git a/src/couchperuser.erl b/src/couchperuser.erl
index 1da0780..98d3e6f 100644
--- a/src/couchperuser.erl
+++ b/src/couchperuser.erl
@@ -90,6 +90,7 @@
         false ->
             update_security(Db, SecProps, Admins, [User | Names])
     end,
+    couch_db:close(Db),
     Acc.
 
 update_security(Db, SecProps, Admins, Names) ->