Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
d3d291db
Commit
d3d291db
authored
Aug 10, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Oct 31, 2013
Browse files
ITS#7662 cleanup reader txn in mdb_entry_get()
parent
6081a7c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/id2entry.c
View file @
d3d291db
...
...
@@ -242,6 +242,8 @@ int mdb_entry_return(
Entry
*
e
)
{
if
(
!
e
)
return
0
;
if
(
e
->
e_private
)
{
if
(
op
->
o_hdr
)
{
op
->
o_tmpfree
(
e
->
e_nname
.
bv_val
,
op
->
o_tmpmemctx
);
...
...
@@ -363,14 +365,7 @@ int mdb_entry_get(
return_results:
if
(
rc
!=
LDAP_SUCCESS
)
{
/* free entry */
if
(
e
)
mdb_entry_return
(
op
,
e
);
if
(
moi
->
moi_ref
==
1
)
{
LDAP_SLIST_REMOVE
(
&
op
->
o_extra
,
&
moi
->
moi_oe
,
OpExtra
,
oe_next
);
mdb_txn_reset
(
txn
);
op
->
o_tmpfree
(
moi
,
op
->
o_tmpmemctx
);
}
mdb_entry_release
(
op
,
e
,
rw
);
}
else
{
*
ent
=
e
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment