mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 14:53:33 -05:00
MDB_VL32 fix cursor_unref - ignore cursor with empty stack
This commit is contained in:
parent
1c2a5888cf
commit
53f624bff0
1 changed files with 1 additions and 1 deletions
|
|
@ -1952,7 +1952,7 @@ static void
|
|||
mdb_cursor_unref(MDB_cursor *mc)
|
||||
{
|
||||
int i;
|
||||
if (!mc->mc_pg[0] || IS_SUBP(mc->mc_pg[0]))
|
||||
if (!mc->mc_snum || !mc->mc_pg[0] || IS_SUBP(mc->mc_pg[0]))
|
||||
return;
|
||||
for (i=0; i<mc->mc_snum; i++)
|
||||
mdb_page_unref(mc->mc_txn, mc->mc_pg[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue