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
d9748a16
Commit
d9748a16
authored
Apr 16, 2010
by
Quanah Gibson-Mount
Browse files
don't free before use
parent
659dafb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/rwmmap.c
View file @
d9748a16
...
...
@@ -789,9 +789,6 @@ rwm_filter_map_rewrite(
case
REWRITE_REGEXEC_OK
:
if
(
!
BER_BVISNULL
(
fstr
)
)
{
fstr
->
bv_len
=
strlen
(
fstr
->
bv_val
);
if
(
fstr
->
bv_val
!=
ftmp
.
bv_val
)
{
ch_free
(
ftmp
.
bv_val
);
}
}
else
{
*
fstr
=
ftmp
;
...
...
@@ -800,6 +797,9 @@ rwm_filter_map_rewrite(
Debug
(
LDAP_DEBUG_ARGS
,
"[rw] %s:
\"
%s
\"
->
\"
%s
\"\n
"
,
fdc
.
ctx
,
ftmp
.
bv_val
,
fstr
->
bv_val
);
if
(
fstr
->
bv_val
!=
ftmp
.
bv_val
)
{
ch_free
(
ftmp
.
bv_val
);
}
rc
=
LDAP_SUCCESS
;
break
;
...
...
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