Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
df05038f
Commit
df05038f
authored
Apr 07, 2003
by
Howard Chu
Browse files
Actually free mapped attrval
parent
68c5f6fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldap/compare.c
View file @
df05038f
...
...
@@ -100,6 +100,8 @@ ldap_back_compare(
ldap_back_dn_massage
(
&
dc
,
&
op
->
orc_ava
->
aa_value
,
&
mapped_val
);
if
(
mapped_val
.
bv_val
==
NULL
||
mapped_val
.
bv_val
[
0
]
==
'\0'
)
{
mapped_val
=
op
->
orc_ava
->
aa_value
;
}
else
{
freeval
=
1
;
}
}
}
...
...
@@ -110,6 +112,9 @@ ldap_back_compare(
if
(
mdn
.
bv_val
!=
op
->
o_req_dn
.
bv_val
)
{
free
(
mdn
.
bv_val
);
}
if
(
freeval
)
{
free
(
mapped_val
.
bv_val
);
}
return
(
ldap_back_op_result
(
lc
,
op
,
rs
,
msgid
,
1
)
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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