Skip to content
Snippets Groups Projects
Commit f3635bc4 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Plug slapindex memleak

parent b3ec64c7
No related branches found
No related tags found
No related merge requests found
......@@ -858,6 +858,7 @@ done:
mdb_strerror(rc), rc, 0 );
e->e_id = NOID;
}
mdb_cursor_close( cursor );
txi = NULL;
/* Must close the read txn to allow old pages to be reclaimed. */
mdb_txn_abort( txn );
......@@ -872,6 +873,8 @@ done:
} else {
unsigned i;
mdb_writes = 0;
mdb_cursor_close( cursor );
cursor = NULL;
mdb_txn_abort( txi );
for ( i=0; i<mi->mi_nattrs; i++ )
mi->mi_attrs[i]->ai_cursor = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment