summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/btree.c
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2010-07-05 17:11:42 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2010-07-05 17:11:42 +0000
commitb09b28603f6d8eab8e34049474e1d64e4bb35fc6 (patch)
treed9503a925403f4a46f1b01e475fe4e94876d86c5 /usr.sbin/ldapd/btree.c
parentfb8039ba14201040aea7635d24aca925f89b78da (diff)
Plug a memory leak when aborting transactions.
Diffstat (limited to 'usr.sbin/ldapd/btree.c')
-rw-r--r--usr.sbin/ldapd/btree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/btree.c b/usr.sbin/ldapd/btree.c
index 9d3b6590871..3a869b2b5b5 100644
--- a/usr.sbin/ldapd/btree.c
+++ b/usr.sbin/ldapd/btree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btree.c,v 1.22 2010/07/02 01:43:00 martinh Exp $ */
+/* $OpenBSD: btree.c,v 1.23 2010/07/05 17:11:41 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -705,6 +705,7 @@ btree_txn_abort(struct btree_txn *txn)
assert(mp->ref == 0); /* cursors should be closed */
mpage_del(bt, mp);
SIMPLEQ_REMOVE_HEAD(txn->dirty_queue, next);
+ mpage_free(mp);
}
DPRINTF("releasing write lock on txn %p", txn);