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
Nadezhda Ivanova
OpenLDAP
Commits
d3a1be4e
Commit
d3a1be4e
authored
Jun 02, 2010
by
Howard Chu
Browse files
ITS#6568 plug cldap memleaks
parent
c8c38471
Changes
2
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
d3a1be4e
...
...
@@ -124,10 +124,14 @@ ldap_send_initial_request(
if
(
ld
->
ld_options
.
ldo_cldapdn
)
ldap_memfree
(
ld
->
ld_options
.
ldo_cldapdn
);
ld
->
ld_options
.
ldo_cldapdn
=
ldap_strdup
(
dn
);
ber_free
(
ber
,
1
);
return
0
;
}
if
(
msgtype
!=
LDAP_REQ_ABANDON
&&
msgtype
!=
LDAP_REQ_SEARCH
)
{
ber_free
(
ber
,
1
);
return
LDAP_PARAM_ERROR
;
}
}
#endif
#ifdef LDAP_R_COMPILE
...
...
libraries/libldap/unbind.c
View file @
d3a1be4e
...
...
@@ -154,6 +154,11 @@ ldap_ld_free(
LDAP_FREE
(
ld
->
ld_options
.
ldo_peer
);
ld
->
ld_options
.
ldo_peer
=
NULL
;
}
if
(
ld
->
ld_options
.
ldo_cldapdn
!=
NULL
)
{
LDAP_FREE
(
ld
->
ld_options
.
ldo_cldapdn
);
ld
->
ld_options
.
ldo_cldapdn
=
NULL
;
}
#endif
#ifdef HAVE_CYRUS_SASL
...
...
Write
Preview
Supports
Markdown
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