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
b47f32f6
Commit
b47f32f6
authored
Aug 11, 2015
by
Ondřej Kuzník
Committed by
Howard Chu
Oct 25, 2015
Browse files
ITS
#8215
Remove a memory leak
parent
f1cd76db
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slapmodify.c
View file @
b47f32f6
...
...
@@ -425,12 +425,13 @@ slapmodify( int argc, char **argv )
break
;
}
ber_bvarray_free
(
mods
.
sm_values
);
ber_bvarray_free
(
mods
.
sm_nvalues
);
if
(
local_rc
!=
LDAP_SUCCESS
)
{
fprintf
(
stderr
,
"%s: DN=
\"
%s
\"
: unable to modify attr=%s
\n
"
,
progname
,
e
->
e_dn
,
mods
.
sm_desc
->
ad_cname
.
bv_val
);
rc
=
EXIT_FAILURE
;
ber_bvarray_free
(
mods
.
sm_values
);
ber_bvarray_free
(
mods
.
sm_nvalues
);
goto
cleanup
;
}
}
...
...
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