1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

ldb:kv_index: use subtransaction_cancel in transaction_cancel

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Sat Jul 27 23:51:44 UTC 2024 on atb-devel-224
This commit is contained in:
Douglas Bagnall 2024-07-21 18:04:49 +12:00 committed by Douglas Bagnall
parent 18131aebf8
commit e58e4a5aa9

View File

@ -970,10 +970,7 @@ int ldb_kv_index_transaction_cancel(struct ldb_module *module)
tdb_close(ldb_kv->idxptr->itdb);
}
TALLOC_FREE(ldb_kv->idxptr);
if (ldb_kv->nested_idx_ptr && ldb_kv->nested_idx_ptr->itdb) {
tdb_close(ldb_kv->nested_idx_ptr->itdb);
}
TALLOC_FREE(ldb_kv->nested_idx_ptr);
ldb_kv_index_sub_transaction_cancel(ldb_kv);
return LDB_SUCCESS;
}